Re: if statement causing page not to load
Posted: Mon Jul 19, 2010 9:05 am
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){