'; $xml .= ''; $xml .= ''.ucfirst($getevent).' schedule'; $xml .= ''.$site_url.'/cheap-'.$GetPerformerURL.'-tickets/'; $xml .= 'Purchase '.ucfirst($getevent).' tickets at TicketsOut.com'; ##############################Deduire Performer ID############ //Performer ID $GetPerformerID = 0; if( $GetPerformerID==0 && $getevent!="" ){ $req_perf = mysql_query("SELECT PerformerID FROM tnd_distinct_performers WHERE PerformerName = '".mysql_real_escape_string($getevent)."' LIMIT 1"); if( @mysql_num_rows($req_perf)==1 ) list($GetPerformerID) = mysql_fetch_array($req_perf); } ################################################################ if( $GetPerformerID==0 && $getevent!="" ){ $search_modded=str_replace(","," +",$getevent); $search_modded=str_replace(" "," +",$search_modded); $search_modded="+".$search_modded; $sql = "SELECT e.Name as Event,v.Name Venue,v.City, e.ID, e.StateProvince, e.Date, e.ChildCategoryID,e.ParentCategoryID,e.GrandchildCategoryID,e.Refer_Category,e.PerformerURL FROM keywords_search_events k JOIN tnd_events2 e ON k.ID=e.ID JOIN tnd_venue as v ON e.VenueID= v.ID WHERE MATCH (k.keywords) AGAINST ('".mysql_real_escape_string($search_modded)."' IN BOOLEAN MODE ) ".$plus_sql. " ORDER BY k.Date"; }elseif($GetPerformerID>0){ $sql = "SELECT e.Name as Event,v.Name Venue,v.City, e.ID, e.StateProvince, e.Date, e.ChildCategoryID,e.ParentCategoryID,e.GrandchildCategoryID,e.Refer_Category,e.PerformerURL FROM tnd_events2 e JOIN tnd_eventperformers2 p ON e.ID=p.EventID JOIN tnd_venue as v ON e.VenueID= v.ID WHERE p.PerformerID = '".$GetPerformerID."' ". $plus_sql. " ORDER BY Date"; } $result=mysql_query($sql); if(@mysql_num_rows($result)==0){ $cat_feed_display = str_replace("-"," ",ucfirst($cat_feed_link)); $title = ucfirst($getevent); $title = ucfirst($getevent)." Tickets"; $text='Discount '.ucfirst($getevent).' '.$cat_feed_display.' tickets. '.ucfirst($getevent).' schedule and seating chart available through TicketsOut.com.'; $link=$site_url.'/cheap-'.$getevent.'-tickets/'; $title=""; $text=""; $xml .= ''; $xml .= ''.$title.''; $xml .= ''.$link.''; //$xml .= ''.$date.' GMT'; $xml .= ''.$text.''; $xml .= ''; } else{ while ($row=mysql_fetch_array($result)) { //id Event $IDEvent = $row["ID"]; //evenement $Event = eregi_replace("vs.","VS",$row["Event"]); $ChildCategoryID_0 = $row["ChildCategoryID"]; $ParentCategoryID_0 = $row["ParentCategoryID"]; $GrandchildCategoryID_0 = $row["GrandchildCategoryID"]; $PerformerURL = $row["PerformerURL"]; //Refer_Category $Refer_Category=$row['Refer_Category']; //date de l'evenement $date=$row['Date']; $date_title1=date("D, d M Y", strtotime($date)); $date_title2=date("h:i a", strtotime($date)); $date_content = date("l, d F Y", strtotime($date)); //venue $Venue = $row["Venue"]; //city $City = $row["City"]; //state $State = $row["StateProvince"]; //rectifier des trucs dans Venue qui seraa affiché $Venue_disp = venue_rectify($Venue,$City,$State); //deduire la cat if($Refer_Category=="") $cat_0_link = ""; else $cat_0_link = $Refer_Category; //titre de l'evenement $arr_key_order = array("Cheap "); if(!isset($arr_key_order[$p]) ) $p=0; $title = $arr_key_order[$p].ucfirst($Event)." Tickets at ".ucfirst($Venue_disp)." in ".ucfirst($City).", ".$State." on ".$date_title1; //contenu de l'xml informations sur l'evenement $text = "Discount Online ".ucfirst($Event)." ".ucfirst($cat_0_link)." tickets in ".ucfirst($City).", ".$State.", on ".$date_content." at ".$date_title2.". ".ucfirst($Venue_disp)." seating chart plus schedule are available here on Ticketsout.com"; $p++; //url de l'evenement $link = $site_url."/cheap-".$PerformerURL."-tickets/".date("dmY", strtotime($date))."-".crypt_number($IDEvent).".php"; $title=""; $text=""; $xml .= ''; $xml .= ''.$title.''; $xml .= ''.$link.''; $xml .= ''.$date.' GMT'; $xml .= ''.$text.''; $xml .= ''; } } $xml .= ''; $xml .= ''; ///////////affichage/////////// echo $xml; } @mysql_close(); ?>