Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\Tp1\chat.php on line 45 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:\wamp\www\Tp1\chat.php on line 45 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\Tp1\chat.php on line 46 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:\wamp\www\Tp1\chat.php on line 46
Voici le détail des lignes :
if($texte==NULL or $pseudo==NULL){//si les variables sont nulles (donc si on a dit d'envoyer sans avoir rien mis....
mysql_connect("localhost","root","");
mysql_select_db("test"); //on se connecte et on choisi la base
?>
Pour un aperçu du code complet et commenté voici le lien :
http://docs.google.com/Doc?id=ddr9d3mb_33fh5wpnxk
