Php catchable hata?

0 Cevap php

Ben gerçekten tek bir hata var:

[04-Jun-2010 15:55:32] PHP Catchable fatal error: Object of class Type could not be converted to string in /home/prettykl/public_html/2010/includes/functions.php on line 140

Bu kod ve satır 140 $ sql hattıdır.

if (!empty($type)) {

    $sql = "SELECT * FROM `types` WHERE `type` = '$type'";
    $dbi = new db();    
    $result = $dbi->query($sql);
    $row = mysql_fetch_row($result);

    $dbi->closeLink();

    $where_array[] = "`typeID` = '".$row->typeID."'";
    $where_array[] = "`typeID2` = '".$row->typeID."'";
}

I have 5 or 6 classes and I've never encountered this problem before. The function has no reference to the classes, any ideas??

Teşekkürler,

Stefan

0 Cevap