Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $results = mysql_query("SELECT * from books order by BorrowTime DESC LIMIT 10");
- while ($row = mysql_fetch_array($results))
- {
- echo $row['Title'];
- }
- $results = mysql_query("SELECT * from books order by BorrowTime DESC LIMIT 10");
- while ($row = mysql_fetch_assoc($results))
- {
- print_r($row);
- exit;//force exit script to debuging, are we get correct result or not
- }
- $results = mysql_query("SELECT Title from books order by BorrowTime DESC LIMIT 10");
- while ($row = mysql_fetch_array($results)){
- echo $row['Title'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement