itpao25

Admin API

Aug 17th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. //connessione database
  2.  
  3. if(mysql_num_rows($risultato_api_admin) > 0) {
  4.    while($row=mysql_fetch_row($risultato_api_admin)){
  5.       $json['informazioni'][]=$row;
  6.     }
  7.       mysql_close($connessione_login);
  8.       header('Content-Type: application/json');
  9.       echo json_encode($json);
  10.      } else {
  11.    print "User not found";
  12.    
  13. //return "Polenta valsugana";
  14. }
  15.  
  16. } else {
  17.  
  18. //return "Polenta valsugana";
  19. print "User not found";
  20.  
  21.  
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment