[phpa] Problem with phpa

Hi nick Hi all

as i was saying before i have a bug with phpa
the problem is with a class declaration

i get that
"Fatal error: Internal Zend error - Missing class information for in 
/home/easyphp/htdocs/_stats/include/db/db_mysql.inc.php on line 8"


but other script with class on my server works fine

this is the script that give this error
-----------------------------------------------------------
<?php

if (!defined( "_DB_MYSQL_LAYER" ))
{
    define("_DB_MYSQL_LAYER", 1);

    class Db
        {   
            var $ConnectionID;
                var $DatabaseName;
                var $Result;
                var $Row;

            function DbConnect($host, $user, $passwd, $database)
            {
                    $this->ConnectionID = @mysql_connect($host, $user, $passwd);
                    
                        if (!$this->ConnectionID)
                            return( false );
                    
                        if ($database)
                            return( $this->DbSelectDatabase($database) );
                    
                        return( true ); 
            }

            function DbSelectDatabase($database) 
            {
                    $this->DatabaseName = $database;

                    if ($this->ConnectionID)
                        {
                            return @mysql_select_db($database, 
$this->ConnectionID);            
                    }
                    else
                        {
                            return false;       
                        }
                }

                function DbQuery($query, $start = '', $limit = '')
                {
                    if ($start != '' || $limit != '')
                        {
                            $query .= ' LIMIT '.$start.','.$limit;
                        }

            $this->Result = @mysql_query($query, $this->ConnectionID);
            return( $this->Result );
        }

                function DbNumRows()
                {
            $count = @mysql_num_rows($this->Result);
            return( $count );
        }
                
                function DbNextRow()
                {
            $this->Row = @mysql_fetch_array($this->Result);
            return( $this->Row );
        }
        }
}

?>

--------------------------------------------------------------------
Manu

------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: