|
Posted by Jon on 01/22/06 23:05
function fetch_row($query, $autoclose = true)
{
if(is_string($query))
$query = self::query($query, true);
$return = mysql_fetch_row($query);
if($autoclose)
self::close($query);
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?$query is
defined as
function query($query, $return = false)
{
$fetch = mysql_query($query, $this->connection) or
die2(mysql_error($this->connection));
if($return)
return $fetch;
Any help would be appreciated...
Jon
[Back to original message]
|