JJohnsenDK Posted February 19, 2007 Share Posted February 19, 2007 Hey I was wondering if its possible to get the highest row in a database table? function showNewsPicture(){ $qry = mysql_query("SELECT news_picture FROM fusion_news WHERE news_id = 'Highest row'"); $row = mysql_fetch_array($qry); return $row['news_picture']; } is this possible?? Link to comment https://forums.phpfreaks.com/topic/39202-how-to-get-highest-row/ Share on other sites More sharing options...
hitman6003 Posted February 19, 2007 Share Posted February 19, 2007 SELECT news_picture FROM fusion_news ORDER BY id DESC LIMIT 1 Link to comment https://forums.phpfreaks.com/topic/39202-how-to-get-highest-row/#findComment-188855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.