par
Invité » 03 avr. 2006, 16:28
Houlà...pourtant tu vois bien la variable dans le lien...
Montres moi ton code complet de la page viewer.php où tu récupères la variable pour voir ? Parce que là comme ça je sèche...
<?php
include("config.php");
include("connectmysql.php");
echo "salut j'affiche du texte pour bien verifier que la syntaxe est bonne et maintenant
j'affiche le resultat de echo _GET['page']
juste ici : ";
echo $_GET['page'];
echo "Rien...Help! ";
$requete=mysql_query("select * from $tab where Num='".$_GET['page']."'");
while($ligne = mysql_fetch_object($requete))
{$imag=$ligne->photo;
$path="$basedir/illustrations/";
echo " <html>
<div align="left"><table id="entete" width="220" cellspacing="0" cellpadding="0">
<tr bgcolor=#ffffff>
<div align="right"></br></br></br>
<td width=116 bgcolor=#ffffff><A name="$ligne->Num"><font color=#000000 face="Verdana", size="1pt"><b>$ligne->date</b></font></A><br>
<font color=#000000 face="Verdana, Arial, Helvetica, sans-serif"><i><b><font size="1pt" > $ligne->titre </font><i></td></div>
<td width=510 bgcolor=#ffffff><font color=#ffffff face="Verdana, Arial, Helvetica, sans-serif"><b><font size="3 >|</font> </td>
<td width="1"></td>
</tr>
<tr bgcolor=#ffffff>
<td width="416"><div align="left"><img src='$path$imag' border-style='dotted' border='1'><font color=#000000 face=Verdana, Arial, Helvetica, sans-serif size=1> </font></div>
<div align=justify><font color=#000000 face="Verdana, Arial, Helvetica, sans-serif" size="1pt">$ligne->descri</font></div></td>
<td width="610"></td>
</tr>
</tr></b>
</div></table></div>
</body></html>";}
?>
<br/></div></body></html>
et le lien pour voir:
http://www.j-pack.org/viewer.php?page=11
[quote="charabia"]Houlà...pourtant tu vois bien la variable dans le lien...
Montres moi ton code complet de la page viewer.php où tu récupères la variable pour voir ? Parce que là comme ça je sèche...[/quote]
<?php
include("config.php");
include("connectmysql.php");
echo "salut j'affiche du texte pour bien verifier que la syntaxe est bonne et maintenant
j'affiche le resultat de echo _GET['page']
juste ici : ";
echo $_GET['page'];
echo "Rien...Help! ";
$requete=mysql_query("select * from $tab where Num='".$_GET['page']."'");
while($ligne = mysql_fetch_object($requete))
{$imag=$ligne->photo;
$path="$basedir/illustrations/";
echo " <html>
<div align="left"><table id="entete" width="220" cellspacing="0" cellpadding="0">
<tr bgcolor=#ffffff>
<div align="right"></br></br></br>
<td width=116 bgcolor=#ffffff><A name="$ligne->Num"><font color=#000000 face="Verdana", size="1pt"><b>$ligne->date</b></font></A><br>
<font color=#000000 face="Verdana, Arial, Helvetica, sans-serif"><i><b><font size="1pt" > $ligne->titre </font><i></td></div>
<td width=510 bgcolor=#ffffff><font color=#ffffff face="Verdana, Arial, Helvetica, sans-serif"><b><font size="3 >|</font> </td>
<td width="1"></td>
</tr>
<tr bgcolor=#ffffff>
<td width="416"><div align="left"><img src='$path$imag' border-style='dotted' border='1'><font color=#000000 face=Verdana, Arial, Helvetica, sans-serif size=1> </font></div>
<div align=justify><font color=#000000 face="Verdana, Arial, Helvetica, sans-serif" size="1pt">$ligne->descri</font></div></td>
<td width="610"></td>
</tr>
</tr></b>
</div></table></div>
</body></html>";}
?>
<br/></div></body></html>
et le lien pour voir:
http://www.j-pack.org/viewer.php?page=11