ERRNO: 2 Division by zero error
- by chupinette
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?