lookee Posted December 14, 2008 Share Posted December 14, 2008 For the following code, line 1 if (!$queryResource=mysql_query($sql,$this->dbConn)) line 2 trigger_error ('Query failed: '.mysql_error($this->dbConn). line 3 ' SQL: '.$sql); I receive Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in Line 1 Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource ine Line 2 Notice: Query failed: SQL: SELECT * FROM packages WHERE id = 2 in Line 3 After much research, I discovered that // SET PASSWORD FOR 'user'@'localhost' = OLD_PASSWORD('pass'); might fix the problem, but I keep getting the error Parse error: syntax error, unexpected T_STRING Any help would be greatly appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/136947-mysql-error/ Share on other sites More sharing options...
corbin Posted December 14, 2008 Share Posted December 14, 2008 $this->dbConn isn't a MySQL connection resource. Quote Link to comment https://forums.phpfreaks.com/topic/136947-mysql-error/#findComment-715311 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.