RE: [PHP] Passing Variables

From: Date: Thu, 23 May 2002 14:54:49 +0000
Subject: RE: [PHP] Passing Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98927@lists.php.net to get a copy of this message
[snip] > <?php > $db=mysql_connect('localhost','',''); > mysql_select_db($database,$db); > $sql="select COUNT" . $this . " from" . $table . " group by" . > $this . "; > ................ > ?> But that results in what looks like an invalid sql query! [/snip] My bad... I didn't test, should be... $sql="select COUNT " . $this . " from " . $table . " group by " . $this; HTH! Jay

« previous php.general (#98927) next »