par
Romuald632 » 23 janv. 2009, 19:19
Pardon pour mon avarisme !!
Voila mon code
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><?php
/*On apelle la variable*/
$choix_pays=$_GET['pays'];
/*Requete mysql*/
$info_pays = mysql_query('SELECT DISTINCT nom,drapeaux FROM pays WHERE pays.nom="'.$choix_pays.'"');
//Avec cette boucle, on affiche le nom du pays
while ($affichage = mysql_fetch_array($info_pays) )
{
echo "<br/>";
echo '<li class="pays"><img src="../images/pt_logo_webcam_01.png" /> Vous êtes ici <img src="../images/fleche_01.png" /> Webcam <img src="../images/fleche_01.png" /> '.$choix_pays.'';
echo ' <img src="../drapeaux_pt/'.$affichage['drapeaux'].'" width="16" height="11"></li>';
echo "<br/>";
echo '<li class="pays">Pour agrandir la webcam, cliquez sur l\'image</li>';
echo "<br/>";
echo "<br/>";
}
?></td>
<td class="refresh">
<a href="javascript:history.go(-1);">[ Retour ]</a><br />
[ Rafraîchir la page ]</td>
</tr>
</table>
Merci
Pardon pour mon avarisme !!
Voila mon code
[php]
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><?php
/*On apelle la variable*/
$choix_pays=$_GET['pays'];
/*Requete mysql*/
$info_pays = mysql_query('SELECT DISTINCT nom,drapeaux FROM pays WHERE pays.nom="'.$choix_pays.'"');
//Avec cette boucle, on affiche le nom du pays
while ($affichage = mysql_fetch_array($info_pays) )
{
echo "<br/>";
echo '<li class="pays"><img src="../images/pt_logo_webcam_01.png" /> Vous êtes ici <img src="../images/fleche_01.png" /> Webcam <img src="../images/fleche_01.png" /> '.$choix_pays.'';
echo ' <img src="../drapeaux_pt/'.$affichage['drapeaux'].'" width="16" height="11"></li>';
echo "<br/>";
echo '<li class="pays">Pour agrandir la webcam, cliquez sur l\'image</li>';
echo "<br/>";
echo "<br/>";
}
?></td>
<td class="refresh">
<a href="javascript:history.go(-1);">[ Retour ]</a><br />
[ Rafraîchir la page ]</td>
</tr>
</table>[/php]
Merci