ERRNO: 2 Division by zero error

Posted by chupinette on Stack Overflow See other posts from Stack Overflow or by chupinette
Published on 2010-04-02T10:48:58Z Indexed on 2010/04/02 10:53 UTC
Read the original article Hit count: 350

Filed under:
|
|

I am getting this error : ERRNO: 2 TEXT: Division by zero I have the following function in my class Customer

public static function GetQuotationDetails($string)
    {
        $sql = 'SELECT I.name, I.discounted_price, I.other_name
                FROM item I
                WHERE ( I.name LIKE CONCAT(  '%', :string,  '%' ))
                AND T.item_name=:string';
        $parameters = array(':string' => $string);
        DB::GetAll($sql,$parameters);



    }

Then,

$this->results = Customer::GetQuotationDetails('grinder');

and i echo the results by

echo $obj_quotations->results;

Can anyone help me?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql