Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

shopping cart problem

Links for php scripts

Moderators: macek, egami, gesf

Postby Shiv » 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
Shiv
php-forum Active User
php-forum Active User
 
Posts: 262
Joined: Wed Feb 02, 2005 8:06 pm
Location: Ahmedabad (Gujarat), INDIA

Postby Alexej Kubarev » 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
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län


Return to PHP Scripts

Who is online

Users browsing this forum: Google [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.