Page 2 of 2

Re: if statement causing page not to load

Posted: Mon Jul 19, 2010 9:05 am
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){

Re: if statement causing page not to load

Posted: Mon Jul 19, 2010 9:14 am
by aravona
ok for some reason putting the first suggestion in the thread back in worked O.o yay!