Tema: unexpected
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/08/2004, 14:59
Avatar de el_cesar
el_cesar
 
Fecha de Ingreso: mayo-2001
Ubicación: Cali
Mensajes: 2.423
Antigüedad: 23 años
Puntos: 20
unexpected

Hola, ya luego de haber cuadrado muchos otros problemas, me surge otro: Parse error: parse error, unexpected ';' in c:\archivos de programa\easyphp1-7\www\links\busqueda.php on line 14

y mi codigo ahora es:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?
//Conexion con la base
$dbh=mysql_connect ("localhost", "root", "") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("consultex");

//Ejecutamos la sentencia SQL
$result=mysql_db_query("consultex","select * from links where descripcion='".$_POST['buscar']."'";
?>
<table align="center">
<tr>
<th>Titulo</th>
<th>Dirección</th>
<th>Descripcion</th>
</tr>
<?
//Mostramos los registros
while ($row=mysql_fetch_array($result))
{

echo '<tr><td>'.$row["link"].'</td>';
echo '<tr><td>'.$row["titulo"].'</td>';
echo '<td>'.$row["descripcion"].'</td></tr>';
}
mysql_free_result($result)
?>
</table>
</body>
</html>


al igual cuando le hago un if para la hora de imprimir los resultados, me saca un error similar, que pasa alli?
__________________
Say no more.......