Código detall.php:
Ver original
<html> <head> <title>Games Line</title> <style type="text/css"> <!-- body,td,th { color: #FF9933; } body { background-color: #000000; } .Estilo1 {color: #CC6600} .Estilo2 {color: #CC9900; } --> </style> <script language="JavaScript"> </script> </head> <body> <form name="frm_joc" action="default.php" method="GET"> <table width="762" height="68%" border="1" align="center" bordercolor="black" bgcolor="#000000" id="tc"> <tr> <th width="90" rowspan="3"> </th> <th width="668" height="65" colspan="6"><a href="default.php"><img border="0" src="imagenes/cabecera.gif"></a></th> <th width="80" rowspan="3"> </th> </tr> <tr bordercolor="white"> <th height="60"><a href="default.php?plataforma=PC" name="PC" class="Estilo1" id="PC">PC</a> </th> <th><a href="default.php?plataforma=DS" name="DS" class="Estilo1" id="DS"> Nintendo DS</a> </th> <th><a href="default.php?plataforma=WII" name="WII" class="Estilo1" id="WII" >Nintendo WII</a> </th> <th><a href="default.php?plataforma=PS2" name="PS2" class="Estilo1" id="PS2" >PlayStation 2 </a></th> <th><a href="default.php?plataforma=PS3" name="PS3" class="Estilo1" id="PS3" >PlayStation 3 </a> </th> <th><a href="default.php?plataforma=360" name="360" class="Estilo1" id="360" >XBOX 360 </a></th> </tr> <tr> <th height="132" colspan="6"> <? $connexio = mysql_connect ('localhost','root',''); mysql_select_db ('videojocs',$connexio); $criterio=""; if (!isset($_GET['plataforma'])) { $criterio="'PC','DS','WII','PS2','PS3','360'"; }else{ $criterio="'".$_GET['plataforma']."'"; } $resultado=mysql_query("SELECT id_videojoc, titol, descripcio, imatge, plataforma FROM videojocs WHERE plataforma in (".$criterio.") ORDER BY titol") or die( "Error en query:" . mysql_error() ); $juegos = mysql_fetch_array($resultado); while ($juegos != FALSE){ $campo=substr($juegos['descripcio'],0,300); echo '<p> </p>'; echo '<p> </p>'; echo '<table width="600" border="1" cellspacing="3">'; echo '<tr>'; echo '<td width="160"> <img width="158" src="imatges/'.$juegos['imatge'].'"></td>'; echo '<td width="420">'.$campo.'... <a href="detall.php?id='.$juegos['id_videojoc'].'" class="Estilo1">Leer más.</a></td>'; echo '</tr>'; echo '</table>'; echo '<p> </p>'; $juegos = mysql_fetch_array($resultado); } mysql_close ($connexio); ?> </table> </form> </body> </html>
si paso a la siguiente paguina (detalle.php) perfectamente me indica en la direccion la id pero no se como puedo llamarla o enviarla a la paguina detalle.php para hacer que me abra directamente la imagen y el texto relacionado con esa id.