Jump to content

mysql error


lookee

Recommended Posts

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! :D

 

Link to comment
https://forums.phpfreaks.com/topic/136947-mysql-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.