Guest User

Untitled

a guest
Jan 19th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. $valore=$_POST['valore'];
  3. $con=mysql_connect('localhost' , 'root' , '') or die(mysql_error());
  4. mysql_select_db('tutorial_mysql' , $con) or die (mysql_error());
  5. $result= mysql_query(" SELECT * FROM cities WHERE city LIKE '%$valore%' LIMIT 0,30 ") or die(mysql_error());
  6.  
  7. while($row=mysql_fetch_array($result)){
  8. echo $row['city']."<br>";
  9. }
  10. ?>
Add Comment
Please, Sign In to add comment