Re: Parse error on array and SQL query

From: Date: Thu, 20 Nov 2003 17:45:25 +0000
Subject: Re: Parse error on array and SQL query
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-31663@lists.php.net to get a copy of this message
Dillon, John wrote:
On line 188 and similar: line 187 $this=$altIDs[$i]; line 188 $query .= "ID='$this'"; I get the error: Parse error: parse error in /home/jdillon/public_html/provreport.php on line 188 Could this be because some setting has been changed on my shared host?
$this is normally used in object oriented programming to signify the current object. That may be causing the trouble. I'd use another variable than $this. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.db (#31663) next »