Results 1 to 1 of 1
Sep 27, 2006, 00:37 #1
- Join Date
- Jul 2006
- New Zealand
- 0 Post(s)
- 0 Thread(s)
Gift Certificate System Doesnt Like Working
Hi,i have made my own gift certification system for my own shopping cart system i have 4 Digit Numbers in the database which the user will get when they buy the the gift certificate.
And one is 4421 which is not used and the other gives a $50 discount
and the other is 8632 which has been used in the database when i try either one it doesnt work at all it say discount price blah blah blah and i try the other one and the other which is not used and the other one that is used says has been used where if i use the used one first then it says has been used if i use the one that hasnt been used after using the one that has been used it says the same for the 1st one,
What is wrong with this?
Can anyone help me find my problem Please?
Code is below.
<br/> if you have a gift certificated please enter it here once you have entered it a message will appear saying<br/> the new discounted price will be under New Price under the gift certificate part of the page. <table> <tr> <td><th align="right">Gift Certificate Number:</th><br /> <th align="right"><form method="post" action=""> <input type="text" name="discountnum" maxlength="4" width="5px"> <input type="submit" name="name2" value="Enter"> </form></th> </td> </tr> </table>PHP Code:
//$cQuery="select gca from gcertificated Where idnum='$idnum' and gid='$gid'";
$cQuery="select * from gcertificated";
<th align=\"right\">New Price:</th><br />";
echo "<th align=\"right\">$"; number_format($total, 2);
echo "Already been used";