It is easy to find last row from table. The below query can be used to get last row from table.
$sql="select * from <table name> order by <field name> desc limit 1"
It displays one last row from table.
More Articles...
Blog about Web development, SEO, Online business, Software Testing and Tech News.
Watch our YouTube ChannelWatch News about latest technologies, and watch Tutorials and some interesting Videos.Discussion ForumJoin interesting and Useful Discussions about Software Testing, Web Development, SEO, Internet Business, Jobs, News, Advertisements, Health, Motivation, etc.Motivational QuotesGet Quotes for Motivating and Inspiring everyone. You can get both text Quotes and Image Quotes. |
No comments:
Post a Comment