if statement causing page not to load

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: if statement causing page not to load

Post by aravona »

I was hardcoding each page before, but I've changed that so the products are not hardcoded (like i said more than one page but only been posting the one)

Code: Select all

$sql = "SELECT `accessory` FROM `ver_pro` where `pID` ='1' AND `prCode` = '" . $row->prCode . "'";
				$result = mysql_query($sql) or die(mysql_error());
				$query_data = mysql_fetch_assoc($result);
				echo print_r($query_data);
        		if ($query_data == 1){
aravona
Forum Contributor
Posts: 347
Joined: Sat Jun 13, 2009 3:59 pm
Location: England

Re: if statement causing page not to load

Post by aravona »

ok for some reason putting the first suggestion in the thread back in worked O.o yay!
Post Reply