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



Your IP : 18.189.143.150


Current Path : /var/www/lhjmq-records.qc.ca/public_html/
Upload File :
Current File : //var/www/lhjmq-records.qc.ca/public_html/testhugo.php

<?

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

 


$sql = "SELECT 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.id_saison =98 AND c.date_match = CURDATE( ) ";

//$mysql_link = mysql_connect('72.55.128.7', 'Lhcarranza', '899357');
$mysql_link = mysql_connect('mysql-readwrite', '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: application/rss+xml");
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
echo '<rss version="2.0">';
echo '<channel>';
echo '<title>LHJMQ horaire des matchs du jour</title>'; 
echo '<link>http://www.lhjmq.qc.ca</link>';
echo '<description>LHJMQ horaire des matchs du jour</description>';
echo '<copyright>LHJMQ 2007</copyright>';
echo '<image><url>http://www.lhjmq.qc.ca/images/publicity/lhjmq1a.jpg</url><title>www.lhjmq.qc.ca</title><link>http://www.lhjmq.qc.ca</link></image>';
echo '<pubDate>' . $today . '</pubDate>';


	while ($rowx = mysql_fetch_assoc($result_count)) {
							
	 	$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 '<item>';
		echo '<title>' . $nom_equipe_dom . ' VS ' . $nom_equipe_vis . '</title>';		
		echo '<link>http://www.lhjmq.qc.ca/lang_fr/index.php?page=342374&amp;id_partie=' . $id_partie . '</link>';
		echo '<description>Id Match: ' . $id_match . '&lt;br&gt;Local : '. $nom_equipe_dom . '&lt;br&gt;Visiteur : ' . $nom_equipe_vis . '&lt;br&gt;Date/Heure : ' . $date . '</description>';		
		echo '<category>' . $date_match . '</category>';
		echo '<guid isPermaLink="false">http://www.lhjmq.qc.ca/lang_fr/index.php?page=342374&amp;id_partie=' . $id_partie . '</guid>';
		echo '</item>';
					
  }
echo '</channel>';
echo '</rss>';  
 

}
?>