Thread: Query Debugging
View Single Post
Old 08-09-2008, 06:18 PM   #3 (permalink)
Aaron
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

Mysql Still hates me:
Code:
	$query = "
		SELECT `slug` , `title`
		FROM `aaron_eglast`.`egle_post`
		WHERE `category` = 'HTML'
		ORDER BY `order` ASC";
	$query = mysql_query($query);
	$q = mysql_fetch_array($query);
			if (mysql_num_rows($q) == 0)
			throw new exception('For some reason, the other tutorials in this category could not be found.
			 They will not be displayed at the side of this page.');
The query returns properly in PHPmyAdmin, yet it throws an error on the page.
__________________
Signatures are nothing but incriminating.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote