PHP 4.0 Bug #4515 Updated: not a valid MySQL-Link resource

From: Date: Fri, 19 May 2000 14:28:42 +0000
Subject: PHP 4.0 Bug #4515 Updated: not a valid MySQL-Link resource
Groups: php.dev 
Request: Send a blank email to php-dev+get-18960@lists.php.net to get a copy of this message
ID: 4515 Updated by: mrobinso Reported By: peterk@wfw.wtb.tue.nl Status: Feedback Bug Type: MySQL related Assigned To: Comments: Your code: $sh = mysql_connect("host","user","password"); $dbc = mysql_select_db("database",$sh); $query = "SELECT * FROM table WHERE row=" . $someid; $result = mysql_query($query,$dbc); On that last line, try: $result = mysql_query($query,$sh); ^^^^ Full Bug description available at: http://bugs.php.net/version4/?id=4515

« previous php.dev (#18960) next »