Re: Coding Blues - Parse Error
| From: | John Holmes | Date: | Thu, 16 Sep 2004 03:37:13 +0000 |
| Subject: | Re: Coding Blues - Parse Error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196816@lists.php.net to get a copy of this message | ||
Dan Joseph wrote:
You don't have a ; at the end of the line. You have $this->db = $db and you should have $db;.Also, this:
Function doquery($query, $db = $this->db){is causing your error. The default value must be a constant expression, not a variable, function, method, etc... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com