<?php
include ("../conectar.php");
$link = Conectarse();
$ssql = "SELECT * FROM login3 WHERE nick='$usuario' and contrasena='$contrasena'";
$rs = mysql_query($ssql,$link);
if (mysql_num_rows($rs)!= 0){
session_start();
session_register("autentificado");
?>
<html>
<head>
<title>Menu de Opciones</title>
</head>
<body>
<center>
<table border="0" id="box-table-a" align="center">
<tr>
<br>
--------------------------------------------------------------------
<br>
<td colspan="2" align="center"><font size="5" color="#ff0000"><u>Menu Personal</u></font></td>
</tr>
<tr>
<td align="left">
<p class="text1">
<?php
$a = ("Select veo from login3 where nick ='$usuario' and contrasena ='$contrasena'");
$b = mysql_query($a,$link);
$datos = mysql_fetch_array($b);
if($datos['veo'] == 0) {
?>
<li> <a href= "3a
![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif)
![Afirmando](http://static.forosdelweb.com/fdwtheme/images/smilies/afirmar.gif)
<?php
mysql_query ("Update login3 set veo = 1 where nick ='$usuario'");
}
else {
echo "Ya lleno este formulario Gracias ::";
}
?>
<li> <a href= "#"><font color="#000000" size="3">Modificar</font> </a> </li><br>
<li> <a href="salir.php"><font color="#000000" size="3">Cerrar Sesion</font> </a> </li>
</p>
</td>
</tr>
</table>
</center>
<br>
<?php
exit();
}
else {
echo "Datos incorrectos por favor intentelo de nuevo";
}
mysql_free_result($rs);
mysql_close($link);
?>
</body>
</html>