Ver Mensaje Individual
  #19 (permalink)  
Antiguo 08/06/2010, 09:58
Avatar de Most
Most
 
Fecha de Ingreso: marzo-2009
Mensajes: 642
Antigüedad: 15 años, 1 mes
Puntos: 6
Respuesta: mostrar en orden por ID (order by id desc limit 1)

Ok, echo me da:

Cita:
Parse error: syntax error, unexpected ':' in /homepages/18/d317375696/htdocs/enlace.php on line 10
code:

Código PHP:
Ver original
  1. <html>
  2. <head>
  3. <title>pelis.php</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. </head>
  6. <body>
  7.  
  8. <?php
  9. $connect=mysql_connect("","","");
  10. $id=$_GET["ver"]:  
  11. var_dump($id);
  12. mysql_select_db("",$connect);
  13. $sql = "SELECT * FROM enlaces WHERE id = $id";
  14. $result = mysql_query($sql, $connect) or die (mysql_error());
  15.  
  16. while ($row = mysql_fetch_array($result)) {
  17.     $enlaces = $row['enlaces'];
  18.     $detalles = $row['detalles'];
  19.     $servidor = $row['servidor'];
  20.     $anio = $row['anio'];
  21.     $nombre = $row['nombre'];
  22.     $caratula = $row['caratula'];
  23.     $id=$row['id'];
  24. }
  25.  
  26. ?>
  27. <table>
  28.     <tr>
  29.         <td rowspan="4"><img style="width: 120px; height: 180px;" src="<? echo $caratula; ?>" /></td>
  30.         <td>
  31.             <table>
  32.                 <tr>
  33.                     <td><b>Nombre:</b> <? echo $nombre; ?></td>
  34.                 </tr>
  35.                 <tr>
  36.                     <td><b>Año:</b> <? echo $anio; ?></td>
  37.                 </tr>
  38.                 <tr>
  39.                     <td><b>Servidor:</b> <? echo $servidor; ?></td>
  40.                 </tr>
  41.                 <tr>
  42.                     <td><b>Detalles/sinopsis:</b><br><textarea style="width:480px; height:100px; padding:5px"><? echo $detalles; ?></textarea></td>
  43.                 </tr>
  44.             </table>
  45.         </td>
  46.     </tr>
  47. </table>
  48. <b>Links de descarga:</b><br><textarea style="width:480px; height:100px; padding:5px"><? echo $enlaces ?></textarea>
  49. <?
  50. ?>
  51. </body>
  52. </html>