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) {
> $
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
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 - Par
Hello. I am writing some code, but though everything seems ok, I get the
same error:
"parse error, unexpected T_VARIABLE on line 23" .
Here is the code:
var $connection;
var $db;
var $query;
var $record;
var $tlist;
}
Function fl_SQL($server, $user, $pass, $db = NULL) {
$thi
4 matches
Mail list logo