close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Facing small problem @ checkout

Thread began 1/23/2012 9:48 am by Kumel | Last modified 2/16/2012 2:25 am by Kumel | 2615 views | 10 replies |

Kumel

Facing small problem @ checkout

When i go to cart & then when i click checkout & then in checkout confirm page, i m getting an error like this -- >
Duplicate entry '47' for key 1


I have attached a file.. please look into it ASAP.
Thank You

Attached Files
1.zip
Sign in to reply to this post

Jason ByrnesWebAssist

to help troubleshoot, edit the confirm page


look for all instances of the following code (make sure to use a case sensitive search):

php:
$WA_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());





and change it to:

php:
$WA_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error()."<br />".$WA_Sql);




then look for all instances of (also case sensitive):

php:
$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error());



and change it to:

php:
$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error()."<br />".$WA_sql);



this will add the sql command being executed after the error, post back the results of testing the checkout again.

Sign in to reply to this post

Kumel

I changed.. still facing same error.

May be i didnt change the code at proper lines... please tell me which line which it.. Because there are two of them.

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to change all instances of the code i posted.

there should be 2 instances of each, all 4 instances need to be edited.

Sign in to reply to this post

Kumel

Yes still after that i m facing problem..

Sign in to reply to this post

Jason ByrnesWebAssist

ok, well I did not say that changing the code would fix the problem, i said that changing the code would output the SQL that is causing the error to the screen. I asked you to post that SQL back, with this information I can then try to determine the cause of the problem and give you advice on how to fix it.

Sign in to reply to this post

Kumel

I made changes i m getting this error-->

Duplicate entry '47' for key 1
insert into orders (OrderUserID,OrderAmount,OrderShipName,OrderShipAddress,OrderShipAddress2,OrderCity,OrderState,OrderZip,OrderCountry,OrderPhone,OrderFax,OrderShipping,OrderTax,OrderEmail,OrderDate) values (1,0.00,'Kumel mohamed','#73, Second Floor, Fathima Manzil,','10th main, B.T.M Layout 1st stage,','Bangalore','','560029','IN','07259104089','',0,0,'mohammed.kumel@gmail.com','2012-02-11 07:11:26')

PLEASE HEP ME ON THIS!! ASAP..

I m not able to understand

Sign in to reply to this post

Kumel

i made all the changes..

Now i m getting error like this-->

Query was empty


@noGatewayconfirm.php page..

i have attached the files please look into them

Attached Files
ngx.zip
Sign in to reply to this post

Kumel

please help me

Sign in to reply to this post

Jason ByrnesWebAssist

the code changes to the confirm page are not quite correct;


line 249:

php:
$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error()."<br />".$WA_sql);




should be:

php:
$WA_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error()."<br />".$WA_Sql);




line 259:

php:
$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error()."<br />".$WA_sql);




should be:

php:
$WA_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error()."<br />".$WA_Sql);



line 301:

php:
$WA_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error()."<br />".$WA_Sql);



should be:

php:
$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error()."<br />".$WA_sql);


line 311:

php:
$WA_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error()."<br />".$WA_Sql);




should be:

php:
$WA_editCmd = mysql_query($WA_sql, $WA_connection) or die(mysql_error()."<br />".$WA_sql);
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...