shopping cart problem

Links for php scripts

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum Active User
php-forum Active User
Posts: 262
Joined: Wed Feb 02, 2005 8:06 pm
Location: Ahmedabad (Gujarat), INDIA

Sun Feb 27, 2005 8:25 pm

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.

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Sun Feb 27, 2005 11:59 pm

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
Best Regards,
Alexej Kubarev
Zend Certified Engineer
Image Image

Post Reply