Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/01/2011, 13:56
alfredobetancourt60
 
Fecha de Ingreso: enero-2011
Ubicación: Cabimas Zulia Venezuela
Mensajes: 1
Antigüedad: 13 años, 3 meses
Puntos: 0
Pregunta ayuda con este error Parse error: syntax error, unexpected '=' in

Buenas tardes ando realizando mis inicios con php y mysql y no se por q me sale este error:

Parse error: syntax error, unexpected '=' in C:\Archivos de programa\EasyPHP\www\prueba\mysql_up.php on line 16

la codificacion que he realizado es esta:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pruebas</title>
<body>
º<!-- mysql_up.php -->
<?php
$host="localhost";
$user=" ";
$password=" ";

mysql_connect($host, $user, $password);
$sql=" Show status";
$result = mysql_query($sql);
if ($result = = 0)
echo "<b>Error " . mysql_error() . " : "
. mysql_error(). "</b>";
else
{
?>
<! - - table that displays the result - ->
<table border="1">
<tr><td><b>Variable_name</b></td><td><b>Value</b></td></tr>

<?php
for ($i = 0; $i < mysql_num_rows($result); $i++) {
echo "<TR>";
$row_array = mysql_fetch_row($result);
for ($j = 0; $j < mysql_num_fields($result) ; $j++
{
echo "<TD>" . $row_array[$j]. "</td>";
}
echo "</tr>";
?>
</table>
<?php } ?>

</body>
</html>

le agradesco si me pueden ayudar, quiero aprender y supuestamente eso es lo mas sencillo y nada que puedo..! ando frustrado ya xD

P.D: no he creado ninguna tabla ni nada en mysql..!