close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Errors messages

Thread began 7/27/2010 4:19 am by nathan | Last modified 8/06/2010 12:54 pm by Eric Mittman | 801 views | 9 replies |

nathan

Errors messages

I am getting these errors when testing on live site:


Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /mnt/w0110/d06/s38/b0318be6/www/airbornavionics.com/confirm.php on line 193

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /mnt/w0110/d06/s38/b0318be6/www/airbornavionics.com/confirm.php on line 227

Any clue what they may be.

Sign in to reply to this post

Eric Mittman

You are getting this error because of the values in your connection file. You will need to update the connection file on the live server to make use of the values for the live db rather than the values for your local db. This is the file that is in the Connections folder on your server.

Sign in to reply to this post

nathan

Connections are fine...I think

I checked and double checked the values in the connections folder reference to this error; however I am still getting them.

My client is not using any payment gateway for processing. He is just getting emails from customers that they are ordering something and he calls later to arrange payment information. I made a test purchase, put in billing (basically shipping information, no CC #'s or payment info) information, clicked to confirm and it goes to the screen with those errors listed. I get a confirmation email, so that is working; however, I don't get redirected to success page or any other page. What could be the issue?

Sign in to reply to this post

Eric Mittman

When you get the errors about the MySQL-Link it is because of the connection file. If the values in your connection file have different names, or you are missing a part of it you can get this error message. You can also get this error message if the code that makes use of the connection file occurs before the connection file is included.

Are these the errors you are getting on the checkout failure page? If so you should take a look at the page and make sure that you have the incude for the connection file above the lines of code that are giving you this error.

Sign in to reply to this post

nathan

I am not sure what I am doing, I guess

I don't have a checkout failure page, I guess since I don't have a payment gateway. The error keeps leading to the confirm.php, which I have attached as a zip file. All my connections to the database are working, with every thing else. The orders are also not being placed into the database as well. Check out the confirm.php and let me know what I am missing. If you could point me in the right direction on what I need to do.

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

Eric Mittman

You are missing the include for the connection file at the top of the page. You should take a look at another page in your site to find the line for the connection and put it at the top of this page, it might look like this:

php:
<?php require_once(Connections/your_connection_file.php); ?>
Sign in to reply to this post

nathan

Thanks again

Eric, you and your support staff are awesome. Your solution worked. Thanks for your assistance.

Okay...I found something else...the order number is not being posted on the confirmation email. Is there to fix something to make this happen? Thanks in advance.

Sign in to reply to this post

Eric Mittman

It looks like the order id is being set in the store order summary server behavior as Airborne_OrderID. On the email receipt page you should be able to reference it like this:

php:
if(!session_id()) session_start()

echo $_SESSION['Airborne_OrderID'];



What do you have in the email receipt to display the id currently?

Sign in to reply to this post

nathan

This is what I have on the email receipt

Order number: <?php echo ((isset($_SESSION["Airborne_OrderID"]))?$_SESSION["Airborne_OrderID"]:"")?>

is that right

Sign in to reply to this post

Eric Mittman

That is rite, I have opened a ticket for you on this issue so we can look into it further. To update the ticket or check it's status please login and visit your support history.

supporthistory.php

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...