Petit probleme en sql
rommel319
Messages postés
5
Statut
Membre
-
rommel319 Messages postés 5 Statut Membre -
rommel319 Messages postés 5 Statut Membre -
Bonjour,
je suis en train d'apprendre le php et le langage sql ,je fais des test sur mon ordinateur et j'ai eu cette erreur :#1064 -
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php
mysql_connect("localhost", "root", "")' at line 1"
est ce que c'est à cause de la première ligne mysql_connect ?
je suis en train d'apprendre le php et le langage sql ,je fais des test sur mon ordinateur et j'ai eu cette erreur :#1064 -
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php
mysql_connect("localhost", "root", "")' at line 1"
est ce que c'est à cause de la première ligne mysql_connect ?
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("coursphp");
mysql_close();
?>
et voila l'erreur :
Erreur
MySQL a répondu:Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php
mysql_connect("localhost", "root", "")' at line 1