[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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php