> -----Original Message----- > From: List [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 17, 2006 9:30 PM > To: mysql@lists.mysql.com > Subject: 'Not a valid MySQL result resource' error > > Hello, > > I'm running f.a.m.p, f =freebsd 4.7 and mysql is 3.23.52. > > Anyway, I inherited a website from someone else's server(I don't know > what they we're running) but the admin section of the website generates > this error iin the apache error log when trying to login( on the screen > just takes you back to login saying invalid: > > <snip> > [Tue Oct 17 19:10:08 2006] [error] PHP Warning: mysql_query(): supplied > argument is not a valid MySQL-Link resource in > /usr/local/apache/website/incoming/_includes/_page-specialeventsnav.php > on line 16
This is the first error. So look for the MySQL-Link resource suppiled to mysql_query(). > $r = mysql_query($x,$db); $x is a string, so that's not it. $db should be the resource, so it's the one throwing the error. So you either don't have a connection, or that's the wrong variable for your connection. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]