estoy programando esto....
Código:
y cuando lo ejecuto me tira el siguiente warning.<? $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>'; ?>
Código:
desde ya gracias. 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