Re: [PHP] Coding Blues - Parse Error

2004-09-15 Thread Oliver Kurz
Hello Yusuf, > Class fl_SQL > { > var $server; > var $user; > var $pass; > > var $connection; > var $db; > > var $query; > var $record; > var $tlist; > } The bracket is wrong. Your class only has properties but no methods. > Function fl_SQL($server, $user, $pass, $db = NULL) { > $

Re: [PHP] Coding Blues - Parse Error

2004-09-15 Thread John Holmes
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

RE: [PHP] Coding Blues - Parse Error

2004-09-15 Thread Dan Joseph
Hi, You don't have a ; at the end of the line. You have $this->db = $db and you should have $db;. -Dan Joseph -Original Message- From: Yusuf [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 11:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Coding Blues - Parse Error