function fetch_row($quer y, $autoclose = true)
{
if(is_string($q uery))
$query = self::query($qu ery, true);
$return = mysql_fetch_row ($query);
if($autoclose)
self::close($qu ery);
return $return;
}
In PHP4 i get an error stating that the $query= self::query line
contains an "Undefined class name 'self'"
how, in general, can I take this and make it php4 compatible?$que ry is
defined as
function query($query, $return = false)
{
$fetch = mysql_query($qu ery, $this->connection) or
die2(mysql_erro r($this->connection)) ;
if($return)
return $fetch;
Any help would be appreciated...
Jon
{
if(is_string($q uery))
$query = self::query($qu ery, true);
$return = mysql_fetch_row ($query);
if($autoclose)
self::close($qu ery);
return $return;
}
In PHP4 i get an error stating that the $query= self::query line
contains an "Undefined class name 'self'"
how, in general, can I take this and make it php4 compatible?$que ry is
defined as
function query($query, $return = false)
{
$fetch = mysql_query($qu ery, $this->connection) or
die2(mysql_erro r($this->connection)) ;
if($return)
return $fetch;
Any help would be appreciated...
Jon
Comment