l'erreur c'est :
et j'ai mis comme code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part #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","password"); mysql_select_db("bdV' at line 1
le problème vient de < et > ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <?php mysql_connect("localhost","root","password"); mysql_select_db("bdVille"); $sql=mysql_query("SELECT * FROM tblVille WHERE Nom_ville like 'L%'"); while($row=mysql_fetch_assoc($sql)) $output[]=$row; print(json_encode($output)); mysql_close(); ?>
Partager