graham23s Posted June 17, 2007 Share Posted June 17, 2007 Hi Guys, this line in my code is giving me errors: $category = mysql_fetch_assoc(mysql_query('SELECT * FROM `categories` WHERE `id`= '$quick_id') ORDER BY `date_added` DESC); my syntax is definately off can anyone help cheers Graham Quote Link to comment https://forums.phpfreaks.com/topic/55978-solved-syntax-problem/ Share on other sites More sharing options...
pocobueno1388 Posted June 17, 2007 Share Posted June 17, 2007 <?php $category = mysql_query("SELECT * FROM `categories` WHERE `id`= '$quick_id' ORDER BY `date_added` DESC"); $cat = mysql_fetch_assoc($category); //display results like this echo $cat['col']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/55978-solved-syntax-problem/#findComment-276481 Share on other sites More sharing options...
graham23s Posted June 17, 2007 Author Share Posted June 17, 2007 cheers mate:) Graham Quote Link to comment https://forums.phpfreaks.com/topic/55978-solved-syntax-problem/#findComment-276487 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.