jay is almostt right, you justneed to add some spaces where you concentate
text and variables
like $sql = "select COUNT " . $this . " from " . $table . " group by " .
$this . ";

jorg

"Jay Blanchard" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
002001c20267$52703e90$8102a8c0@niigziuo4ohhdt">news:002001c20267$52703e90$8102a8c0@niigziuo4ohhdt...
> [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

Reply via email to