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 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']; ?> 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 Link to comment https://forums.phpfreaks.com/topic/55978-solved-syntax-problem/#findComment-276487 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.