I have the following code:
$rebate_query = tep_db_query("select * from " . TABLE_REBATES . " where product_id = " . (int)$HTTP_GET_VARS['products_id']); $rebate_information = tep_db_fetch_array($rebate_query);
This should return only 1 row of data
I have this code - "
$rebate = $rebate_information['rebate_amount'];
for extracting the rebate amount. For the life of me I cannot
understand why this isn't working. It doesn't error out, but nothing is returned, and I know that the value exists.
I would very much appreciate any help you can give. Thanks.