I am getting this error : ERRNO: 2 TEXT: Division by zero LOCATION: C:\xampp\htdocs\final\classes\customer.php, line 183, at April 2, 2010, 3:49 pm
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, '%' )) ---line 183
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? When i run the sql code and replace :string by 'grinder', it displays the required records.