note 31845 added to function.mysql-select-db

From: Date: Tue, 06 May 2003 12:16:37 +0000
Subject: note 31845 added to function.mysql-select-db
Groups: php.notes 
Request: Send a blank email to php-notes+get-47578@lists.php.net to get a copy of this message
It seems that mySQL doesn't like the backtick (`) operator when changing DB. So if you call mysql_select_db('some-db',$link) ; you will get an error. However the same request will be successful if you delete backticks mysql_select_db('some-db',$link); Note that it's a mySql problem. The same problem appears if you try to do the same thing with a pure SQL statement: USE DB some-db won't Work! The bigger problem is that neither USE DB some-db will work because of the '-' -- http://www.php.net/manual/en/function.mysql-select-db.php http://master.php.net/manage/user-notes.php?action=edit+31845 http://master.php.net/manage/user-notes.php?action=delete+31845 http://master.php.net/manage/user-notes.php?action=reject+31845

« previous php.notes (#47578) next »