I expect this to go only through one of the if statements but its goign through them all and printing 1234.
why? anyone knows??
$formatis = $HTTP_GET_VARS['formatis'];
if($formatis='newvhs'){
echo "1";
$query_price = tep_db_query("select products_id, price_new_vhs as price, price_new_dvd, price_used_vhs, price_used_dvd, products_price from products where products_id = '" . $HTTP_GET_VARS['products_id'] . "'");
}
if($formatis='newdvd'){
echo "2";
$query_price = tep_db_query("select products_id, price_new_dvd as price, price_new_vhs, price_used_vhs, price_used_dvd, products_price from products where products_id = '" . $HTTP_GET_VARS['products_id'] . "'");
}
if($formatis='useddvd'){
echo "3";
$query_price = tep_db_query("select products_id, price_used_dvd as price, price_new_dvd, price_new_vhs, price_used_vhs, products_price from products where products_id = '" . $HTTP_GET_VARS['products_id'] . "'");
}
if($formatis='usedvhs'){
echo "4";
$query_price = tep_db_query("select products_id, price_used_vhs as price, price_new_vhs, price_new_dvd, price_used_dvd, products_price from products where products_id = '" . $HTTP_GET_VARS['products_id'] . "'");
}