Francky683
08-01-2006, 10:23 PM
Hi all,
I've been workin with PHP for some time and I must say I just had the weirdest error ever this afternoon. Here are the code lines :
<?
$cartSql = mysql_query("SELECT * FROM ".$table_suffixe."shop_carts WHERE cart_id = ".str_replace("cart","",$_GET['id'])." AND user_id = ".$_SESSION['session_user_id']);
if(isset($_GET['id']) && isset($_GET['uid']) && isset($_GET['value']) && (mysql_num_rows($cartSql) == 0) && (md5($_SESSION['session_unique_id']) == $_GET['uid']))
{
$cartRow = mysql_fetch_array($cartSql);
$priceShipping = ($cartRow['price']*$shoppingCart->shippingFees/100);
$priceShopping = ($cartRow['price']*$shoppingCart->shoppingTaxes/100);
if(md5(str_replace($notGoodChars,"",round($cartRow['price']+$priceShipping,$priceShopping,2))) !== $_GET['value'])
{
}
}
else{
echo "
<div style=\"padding:5px;\">
You didn't follow the good link, please follow the one in the email that contains your order's informations.
</div>
";
}
?>
Error message :
Fatal error: Call to undefined function: isset() in /mounted-storage/home19a/sub001/sc19472-DQUQ/www/acidreign/shop/completed.php on line 9
Can anyone help me with this?
Best regards,
Francis B.
I've been workin with PHP for some time and I must say I just had the weirdest error ever this afternoon. Here are the code lines :
<?
$cartSql = mysql_query("SELECT * FROM ".$table_suffixe."shop_carts WHERE cart_id = ".str_replace("cart","",$_GET['id'])." AND user_id = ".$_SESSION['session_user_id']);
if(isset($_GET['id']) && isset($_GET['uid']) && isset($_GET['value']) && (mysql_num_rows($cartSql) == 0) && (md5($_SESSION['session_unique_id']) == $_GET['uid']))
{
$cartRow = mysql_fetch_array($cartSql);
$priceShipping = ($cartRow['price']*$shoppingCart->shippingFees/100);
$priceShopping = ($cartRow['price']*$shoppingCart->shoppingTaxes/100);
if(md5(str_replace($notGoodChars,"",round($cartRow['price']+$priceShipping,$priceShopping,2))) !== $_GET['value'])
{
}
}
else{
echo "
<div style=\"padding:5px;\">
You didn't follow the good link, please follow the one in the email that contains your order's informations.
</div>
";
}
?>
Error message :
Fatal error: Call to undefined function: isset() in /mounted-storage/home19a/sub001/sc19472-DQUQ/www/acidreign/shop/completed.php on line 9
Can anyone help me with this?
Best regards,
Francis B.