Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/02/2008, 22:24
Nashin
 
Fecha de Ingreso: febrero-2008
Mensajes: 25
Antigüedad: 16 años, 2 meses
Puntos: 1
Warning en consulta.

Buenas, que tal soy nuevo y estoy aprendiendo a la patadas php jajaj.. si alguien me ofrece un manual bienvenido sea jja.. bueno vamos al error en si
estoy programando esto....

Código:
<? 

$title='Mensaje al Webmaster';
if ($_get["mensaje"]!="")
$conn =mysql_connect ("127.0.0.1","root","");
mysql_select_db("baseprueba");
$qry ="insert into mensajes (nickname, email, mensajes, fecha) values ('".$_get["nickname"]."', '".$_get["email"]."', '".$_get["mensaje"]."', sysdate())";
$res= mysql_query($qry);
print '<html>
<head>
<title>'.$title.'</title>
<br><br>
<form action="mensajes.php" metho="get">
<table>
<tr><td>Nickname (Apodo): </td><td><input type="text" name="nickname"></td></tr>
<tr><td>E-mail: </td><td><input type="text" name="email"></td></tr>
<tr><td>Mensaje: </td><td><input type="text" name="mensaje"></td></tr>
<tr><td><input type="submit" value="Grabar"/></td></tr>
</table>
</form>
</body>
</html>';
?>
y cuando lo ejecuto me tira el siguiente warning.


Código:
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\www\mensajes.php on line 6

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\AppServ\www\www\mensajes.php on line 6

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\www\mensajes.php on line 8

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\www\mensajes.php on line 8
desde ya gracias.