RE: [PHP] Passing Variables
| From: | Jay Blanchard | Date: | Thu, 23 May 2002 14:37:09 +0000 |
| Subject: | RE: [PHP] Passing Variables | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-98919@lists.php.net to get a copy of this message | ||
[snip]
me.php
<?php
$db=mysql_connect('localhost','','');
mysql_select_db($database,$db);
$sql="select COUNT($this) from $table group by $this";
................
?>
[/snip]
<?php
$db=mysql_connect('localhost','','');
mysql_select_db($database,$db);
$sql="select COUNT" . $this . " from" . $table . " group by" . $this
. ";
................
?>
Note the concatenation operators, HTH!
Jay