Tema: error en php
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/08/2006, 14:15
Avatar de rimtzg
rimtzg
 
Fecha de Ingreso: mayo-2005
Mensajes: 162
Antigüedad: 18 años, 11 meses
Puntos: 0
error en php

Hola tengo un .php que me da este error

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /www/sites/1/iespana.es/r/i/rimtzg/site/chat.php on line 22

este es el codigo

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<?php
$link = mysql_connect("imysql03", "i4278430","55klgrmirxn64arn");
mysql_select_db("i4278430", $link);
$result = mysql_query("SELECT user, text FROM chat_log", $link);
if ($row = mysql_fetch_array($result)){
echo "<table border = '1'> \n";
echo "<tr> \n";
echo "<td><b>Usuario</b></td> \n";
echo "<td><b>Texto</b></td> \n";
echo "</tr> \n";
do 
{
echo "<tr> \n";
echo "<td>".$row["user"]."</td> \n";
echo "<td>".$row["text"]."</td>\n";
echo "</tr> \n";
} 
while ($row = mysql_fetch_array($result));
echo "</table>" style="margin-left: 50">;
echo "</table> \n";
} 
else 
{
echo "¡ La base de datos está vacia !";
}
?>
</body>
</html>
Que significa y como resolverlo?
__________________
Entra
El Diario de Jebediah
Brigada SOS
-----------------