Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $results = mysql_query("SELECT * from books order by BorrowTime DESC LIMIT 10");
  2. while ($row = mysql_fetch_array($results))
  3. {
  4. echo $row['Title'];
  5. }
  6.  
  7. $results = mysql_query("SELECT * from books order by BorrowTime DESC LIMIT 10");
  8. while ($row = mysql_fetch_assoc($results))
  9. {
  10. print_r($row);
  11. exit;//force exit script to debuging, are we get correct result or not
  12. }
  13.  
  14. $results = mysql_query("SELECT Title from books order by BorrowTime DESC LIMIT 10");
  15. while ($row = mysql_fetch_array($results)){
  16. echo $row['Title'];
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement