close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Warning: mysql_query(): supplied argument is not a valid MySQL-Link

Thread began 1/06/2011 11:18 pm by gpaul | Last modified 1/07/2011 3:17 pm by Jason Byrnes | 3024 views | 7 replies |

gpaul

Warning: mysql_query(): supplied argument is not a valid MySQL-Link

I am receiving this error message when trying to connect to a database.

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/content/90/7253390/html/WA_SecurityAssist/Helper_PHP.php on line 14

Same error for line 20.

Those lines are (14)

mysql_select_db($WA_Auth_Parameter["database"], $WA_Auth_Parameter["connection"]);
$WA_Auth_loginSQL = "SELECT `".implode('`,`', $WA_Auth_Parameter["sessionColumns"])."` FROM `".$WA_Auth_Parameter["tableName"]."` WHERE ";

And (20)

$WA_Auth_RS = mysql_query($WA_Auth_loginSQL, $WA_Auth_Parameter["connection"]) or die(mysql_error());

It is a little perplexing in that I have another site up and the code is the same and I have no connection problems.

Anyone be able to point me to my problem?

Thank you

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the login page in a zip archive.

Sign in to reply to this post

gpaul

Thank you, find attached.

Gary

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

Jason ByrnesWebAssist

the connection file on your page is:

<?php require_once('Connections/rr.php');?>


but the login code is looking for a connection named login.php

Sign in to reply to this post

gpaul

Eric

Thank your for your quick reply, however there is no login.php on that page. There is

"connection" => $login,

Is that what you are referring to?

Thanks again.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that is the problem.

the connection file will create a variable based on the name of the file.


the Connections/rr.php file creates a variable named $rr

the Connections/login.php would create the variable named $login



the authenticate user code was created using the Connections/login.php connection file, but that connection is not present on the page.

Sign in to reply to this post

gpaul

Problem Solved

Thanks again for your help, problem has been solved.

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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