Jump to content

[SOLVED] How do you read the last row in table


adi5402

Recommended Posts

I have a table with 500 products how do i pick up the last row

 

I know you can order it by using this

 

i can also get the number of rows using some code but is there a way we can just directly read the last entry

 

$sql = 'SELECT * FROM `products` ORDER BY `products`.`book_Id` ASC LIMIT 0, 30 ';

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.