Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/01/2003, 05:52
Rides
 
Fecha de Ingreso: febrero-2002
Mensajes: 346
Antigüedad: 22 años, 1 mes
Puntos: 1
Pregunta Urgente ayuda!!!php con mysql

Amigo del foro:

Tengo el sgte. problema al ejecutar este form :
"Parse error: parse error in /var/www/html/ap_acceso2.php on line 38". He revisado varias veces el codigo y no se a que hecharle la culpa.....

adjunto codigo de las 2 pag.

Este html llama al ap_acceso2.php
<html>
<head></head>
<body>
<form method="get" action="ap_acceso2.php">
<br><br><br><br><br><br>
<div align="center"><table border="6" cellpadding="3" cellspacing="3" bgcolor="#C0C0C0" bordercolor="#808080" bordercolorlight="#C0C0C0" bordercolordark="#808080">
<tr><td>Ingrese su Rut</td>
<td><input type="Text" name="rut" size="8" maxlength="8"></td>
<TD><input type="Text" name="dig" size="1" maxlength="1"></TD></tr>
<tr><td>Ingrese su Passwd</td>
<td><input type="password" name='passwd' size='8' maxlength='8'></td>
</tr>
<tr>
<td><input type="submit" name="enviar" value="Aceptar"> </td>
<td><div align="center"><input type="reset" value="Borrar "></div></td>
</tr>
</table></div>
</form>
</body>
</html>
-----------------------------------------------------------------
este es ap_acceso2.php
<html>
<head>
</head>
<body>
<?php
if (!$rut)
{
echo "<div align='center'><font size='+3'><font color='#ff0000'>Error debe ingresar su Rut \n</font></font></div>";
exit;
if (!$dig)
{
echo "<div align='center'><font size='+3'><font color='#ff0000'>Error debe ingresar su digito verificador \n</font></font></div>";
exit;
}
if (!$passwd)
{
echo "<div align='center'><font size='+3'><font color='#ff0000'>Error debe ingresar su passwd \n </font></font></div>";
exit;
}
$link = mysql_connect("localhost", "root","");
if(!$link)
{
echo "ERROR: Imposible establecer conexión con el servidor \n";
echo " \n";
exit;
}
mysql_select_db("colegio",$link);
$result = mysql_query("SELECT * FROM miembros WHERE miembros_rut='$rut' and miembros_dg='$dig' and miembros_pw='$passwd'", $link);
if (!$result)
{
echo "<br><br><br><br><br><div align='center'><font size='6' color='#ff0000'>! Rut no correponde a un usuario autorizado....¡</font></div></font>";
echo "<font color='#0066ff'><div align='center'>Por favor contactese con [email protected]</div></font> \n";
exit;
}
$row = mysql_fetch_row($result);
if (!$row)
{
echo "No es un usuario autorizado. Contactese con [email protected] \n";
exit;
}
$rut=$row[0];
$dig=$row[1];
include("lib_a1.php");
?>
</body>
</html>

Da la impresion que no se ejecuta la segunda pagina.

Gracias por la ayuda que me puedan dar

Rides