Ver Mensaje Individual
  #11 (permalink)  
Antiguo 15/04/2009, 10:46
femolina
 
Fecha de Ingreso: septiembre-2006
Mensajes: 60
Antigüedad: 17 años, 7 meses
Puntos: 0
Respuesta: Recuperar ultimo registro

He colocado modificado el código y tampoco sale...

Código PHP:
<?
//Conexion con la base
$Con=mysql_connect("localhost","riberad_xxxxx","xxxxxx"); 
//selección de la base de datos con la que vamos a trabajar 
mysql_select_db("riberad_ejemplo"$conexion); 
//Ejecutamos la sentencia SQL
$result=mysql_query("select * from clientes where Id = (select max(Id) from clientes)",$Con)
//Mostramos los registros
while ($row=mysql_fetch_array($result))
{
echo 
'<td>'.$row["Id"].'</td>';
echo 
'<td>'.$row["fecha"].'</td>';
echo 
'<td>'.$row["torneo"].'</td>';
echo 
'<td>'.$row["jornada"].'</td>';
echo 
'<td>'.$row["partido"].'</td>';
echo 
'<td>'.$row["resultado"].'</td>';
echo 
'<td>'.$row["goleadores"].'</td></tr>';
}
mysql_free_result($result)
?>
sigue saliendo este error

Parse error: syntax error, unexpected T_WHILE in /home/riberad/public_html/principal/bdatos/ultimo.php on line 9