shopping cart problem

A

Anonymous

Guest
I think the problem is in
checkout.php :
segment is :

$query2 = "INSERT INTO view (account_no, token_id, name, address, postcode, state, country) VALUES ( '$aa','$t','$n','$ad','$p','$s','$c' )";
mysql_query($query2) or die(mysql_error());

because variable written between ' ' will not be parsed by php
You should try "$aa","$t" etc.

I hope your problem will be solved.
 
The variable WILL be parsed as a PHP varialbe.. are there any errors at all? forinstans remove error_suppression infornt of the mysql_query and put a die(mysql_error()) after the select query.. check if the $num really is going to be more then 0
 
Back
Top