HELP: Still Learning

From: Date: Sun, 28 Oct 2001 06:18:25 +0000
Subject: HELP: Still Learning
Groups: php.general 
Request: Send a blank email to php-general+get-72611@lists.php.net to get a copy of this message
Still learning! But need syntax help. This works: $myconnection = mysql_pconnect($host,"MyAccount","MyPassword"); ... $news = mysql_query("SHOW TABLE STATUS FROM MyAccount LIKE 'MyTable'"); ... This does not: $MyAccount = "MyAccount"; $MyTable = "MyTable"; $MyPassword = "MyPassword"; $myconnection = mysql_pconnect($host,"$MyTable","$MyPassword"); ... $news = mysql_query("SHOW TABLE STATUS FROM MyAccount LIKE 'MyTable'"); ... So? ... How do I use $MyAccount, $MyTable & $MyPassword correctly? ... I'm creating a function.inc ... An email post & reply would help ... (help me get to bed faster tonight :) ) John

« previous php.general (#72611) next »