note 29307 added to ref.mysql

From: Date: Sun, 09 Feb 2003 15:11:41 +0000
Subject: note 29307 added to ref.mysql
Groups: php.notes 
Request: Send a blank email to php-notes+get-43683@lists.php.net to get a copy of this message
I found out that you cannot use multidimensional arrays in a SQL-query, e.g. : $sql = "SELECT * FROM $whichtable[$whichdb[$which]] WHERE id = $entry"; this will work fine however : $tempvar = $whichtable[$whichdb[$which]]; $sql = "SELECT * FROM $tempvar WHERE id = $entry"; If it already is a bug, is it in mySQL or PHP ? -- http://www.php.net/manual/en/ref.mysql.php http://master.php.net/manage/user-notes.php?action=edit+29307 http://master.php.net/manage/user-notes.php?action=delete+29307 http://master.php.net/manage/user-notes.php?action=reject+29307

« previous php.notes (#43683) next »