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?? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.