RE: [PHP-DB] No MySQL-Link resource supplied
the link will be the link you set up to connect to mysql, or the resource id as php refers to it (i think) you'll have something like $link=mysql_connect(...) as below [example from manual] Steve > -Original Message- > From: Rankin, Randy [mailto:[EMAIL PROTECTED]] > Sent: 10 May 2001 13:56 > To: [EMAIL PROTECTED] > Subject: [PHP-DB] No MySQL-Link resource supplied > > > Is anyone familiar with this error and what causes it (or > better, how to fix > it). > Warning: No MySQL-Link resource supplied in > /usr/local/apache/htdocs/sales/login.php on line 46 > > Line 46 = mysql_close(); I cannot seem to find anything > regarding this > message in the MySQL or PHP manuals. > > Thanks in advance, > > Randy Rankin > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] No MySQL-Link resource supplied
- Original Message - From: Rankin, Randy <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 10, 2001 10:56 PM Subject: [PHP-DB] No MySQL-Link resource supplied > Is anyone familiar with this error and what causes it (or better, how to fix > it). > Warning: No MySQL-Link resource supplied in > /usr/local/apache/htdocs/sales/login.php on line 46 > > Line 46 = mysql_close(); I cannot seem to find anything regarding this > message in the MySQL or PHP manuals. If $connectup = mysql_connect($server ,$user , $password); then mysql_close($connectup); Tim Morris -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] No MySQL-Link resource supplied
> Is anyone familiar with this error and what causes it (or better, how > to fix it). > Warning: No MySQL-Link resource supplied > in /usr/local/apache/htdocs/sales/login.php on line 46 Go to: http://uk.php.net/manual/en/function.mysql-close.php, it seems as if mysql_close() does take some arguments, therefore the error message: "Warning: No MySQL-Link resource supplied " means that php was expecting arguments for mysql_close() and was given none. HTH Russ On Thu, 10 May 2001 07:56:07 -0500 "Rankin, Randy" <[EMAIL PROTECTED]> wrote: > Is anyone familiar with this error and what causes it (or better, how > to fix it). > Warning: No MySQL-Link resource supplied > in /usr/local/apache/htdocs/sales/login.php on line 46 > > Line 46 = mysql_close(); I cannot seem to find anything regarding this > message in the MySQL or PHP manuals. > > Thanks in advance, > > Randy Rankin > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > #---# "Believe nothing - consider everything" Russ Michell Anglia Polytechnic University Webteam e: [EMAIL PROTECTED] w: www.apu.ac.uk/webteam t: +44 (0)1223 363271 x 2331 www.theruss.com #---# -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DB] No MySQL-Link resource supplied
Is anyone familiar with this error and what causes it (or better, how to fix it). Warning: No MySQL-Link resource supplied in /usr/local/apache/htdocs/sales/login.php on line 46 Line 46 = mysql_close(); I cannot seem to find anything regarding this message in the MySQL or PHP manuals. Thanks in advance, Randy Rankin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]