W wxdqz New Member Aug 21, 2008 #1 Just a quick question, why does this work: mysql_select_db("databasename", $connection); but this not?: $db = "databasename"; mysql_select_db($db, $connection); Whenever I try to use the $db variable I get a "No Database Selected" mysql_error.
Just a quick question, why does this work: mysql_select_db("databasename", $connection); but this not?: $db = "databasename"; mysql_select_db($db, $connection); Whenever I try to use the $db variable I get a "No Database Selected" mysql_error.