Guest User

Untitled

a guest
Apr 1st, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2. $password = "AltervistaRusty1";
  3. $servername = "localhost";
  4. $username = "a333333333";
  5. $dbname = "a333333333";
  6. $con = mysql_connect($servername,$username,$password);
  7. mysql_select_db( 'a333333333', $con);
  8.  
  9. $t = date("H");
  10. function cerca($campo,$valore)
  11. {
  12. //test funzione dichiarata
  13. }
  14. if ($con)//se connesso
  15. {
  16. print "connesso con successo";
  17. //ricerca
  18. $sql = "SELECT * FROM `BASE`";
  19.  
  20. $result = mysql_query($sql, $con);
  21. print mysqli_num_rows($result);
  22. //verifica risultati
  23. if(mysql_num_rows($result)> 0){
  24. print "trovato";
  25.  
  26. }
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. }
  35. else print "errore di connessione";
  36. ?>
Add Comment
Please, Sign In to add comment