change

PHP Code: 
function fetchArray(){
        while(
$row mysql_fetch_array($this->queryresult)){
            
//change this to whatever you want.
            
print $row['id'] . '
'
;
        }
    } 
to

PHP Code: 
function FetchObject()
{
    
$Holder = array();
    while(
$row mysql_fetch_object($this->queryresult))
    {
        
$Holder[] = $row;
    }
    return 
$Holder;

So that you can do

PHP Code: 

foreach($phonebook->fetchArray() as $Object)
{
    echo 
$Object->ColumnName;


and i did giggle at:

PHP Code: 
                $this->query mysql_real_escape_string(trim($query));
                
$this->queryresult mysql_query($this->query);
                return 
true
your only ment to escape the variables inside the string not the whole string, that will fuck everything up .

Quote Originally Posted by Comkid View Post
No offence, but why not just use PDO?
PDO is very much the same but sometimes you need to go custom for big projects instead of using other peoples libs