Re: Passing Variables

From: Date: Thu, 23 May 2002 19:29:44 +0000
Subject: Re: Passing Variables
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-13974@lists.php.net to get a copy of this message
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" <jay.blanchard@niicommunications.com> schrieb im Newsbeitrag 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 >

« previous php.windows (#13974) next »