note 31845 deleted from function.mysql-select-db by didou

From: Date: Wed, 02 Jul 2003 14:27:57 +0000
Subject: note 31845 deleted from function.mysql-select-db by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-51362@lists.php.net to get a copy of this message
Note Submitter: alphalund@infinito.it ---- 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 '-'

« previous php.notes (#51362) next »