[eluser]vincej[/eluser]
This one is weird - I get the following error with Chrome 35, but not with IE 11 or Firefox 29:
Quote:Fatal error: Call to a member function num_rows() on a non-object in /home/countr70/public_html/application/models/mcustomer.php on line 433
I know what the error means. It means that the query has not found any rows.
It refers to this code:
Code:
function GetCustomerPickupLocation($tel_customerid) {
$sql ="
select `location`,`id`,`locationid`
from locations,customer
where `locationid` = customer.deliveryid
and customer.id = $tel_customerid;";
$Q = $this->db->query($sql);
if ($Q->num_rows() > 0){ // line 433
$row = $Q->row();
return $row->location;
}
}
When I check the $tel_customerid with die() I get a bizaar value:
percent three C ( Sorry this site refuses to allow me to enter it lterally )
which of course causes the query to fail. I do not know what or wher this value comes from. It should be a url segment value.
If it is relevant, I recently upgraded to 2.2. Also I recently added SSL to the site.
My question is why would it give an error in Chrome but not in IE and Firefox.
Mnay thanks !