AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.14.245.172


Current Path : /var/www/lhjmq-records.qc.ca/public_html/lang_un/stats/rss/
Upload File :
Current File : //var/www/lhjmq-records.qc.ca/public_html/lang_un/stats/rss/horairedujour.php

<?

$today = date("D, d M Y H:i:s T ");

 
include('../../../administration/includes/mysql_connect.php');

$sql = "SELECT p . * ,month(p.date_match) as monthstat, p.avnotes_fr, p.dern_mod, p.fusilladestatus, p.but_vis, p.but_dom, p.assistance, p.id_partie, p.gamestatus, p.notes_fr AS specialnotes, p.periode, c. *
FROM calendriers AS c
LEFT JOIN parties AS p ON p.id_calendrier = c.id_calendrier
WHERE  c.date_match = CURDATE( ) 
order by p.id_match";

//$mysql_link = mysql_connect('72.55.128.7', 'Lhcarranza', '899357');
mysql_select_db('lhjmq_pii', $mysql_link);				
$result_count = mysql_query($sql, $mysql_link);

		
if (mysql_num_rows($result_count) > 0){		
header("content-type: text/xml");
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
echo '<root title="LHJMQ horaire des matchs du jour">';
	while ($rowx = mysql_fetch_assoc($result_count)) {


		$abrev_vis = trim($rowx['abrev_vis']);
		$abrev_dom = trim($rowx['abrev_dom']);			
		$id_saison = trim($rowx['id_saison']);	
		$monthstat = trim($rowx['monthstat']);								
	 	$id_partie = trim($rowx['id_partie']);
	 	$id_match = trim($rowx['id_match']);
	 	$dern_mod = trim($rowx['dern_mod']);
		$date_match = trim($rowx['date_match']);
		$heure_match = trim($rowx['heure_match']);		
		$nom_equipe_dom = trim($rowx['nom_equipe_dom']);		
		$nom_equipe_vis = trim($rowx['nom_equipe_vis']);				
	  $date= $date_match . ' ' . $heure_match;
	 // $date_match=date("D, d M Y H:i:s", strtotime($date));
				
		echo '<match id="' . $id_partie . '">';
		echo '<title>' . $nom_equipe_dom . ' VS ' . $nom_equipe_vis . '</title>';		
		echo '<link>http://www.lhjmq.qc.ca/lang_fr/index.php?page=234342412&amp;calendar_mode=0&amp;id_type_cal=1&amp;id_saison=' . $id_saison . '&amp;serie_ronde=0&amp;browse_mode=0&amp;month=' . $monthstat . '</link>';
		echo '<idmatch>' . $id_match . '</idmatch><local>'. $nom_equipe_dom . '</local><localabrev>'.$abrev_dom.'</localabrev><visiteur>' . $nom_equipe_vis . '</visiteur><visiteurabrev>'.$abrev_vis.'</visiteurabrev><date>' . $date_match . '</date><heure>' . $heure_match . '</heure>';		
		echo '</match>';
					
  }
echo '</root>';
 

}
?>