Advertisement
Guest User

Untitled

a guest
May 29th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $query = mysql_query($sql, $conn);
  2. $num_rows = mysql_num_rows($query);
  3. $myarray = array();
  4. while ($user = mysql_fetch_array($query)){
  5.  
  6. $myarray[]=$user;
  7.  
  8.  
  9. }
  10. echo $num_rows;
  11. mysql_free_result($query);
  12. print_r ($myarray);
  13. mysql_close();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement