Welcome Guest, Not a member yet? Register   Sign In
Missing quotes on DB query
#2

I've resolved this.

I was populating the $manufacturer variable from a SimpleXML object, and it seemed to be doing something weird. Using type casting as string solved the issue.

I changed the code:
Code:
$manufacturer = (string) $response->Manufacturer;

Now everything is working as expected.
Reply


Messages In This Thread
Missing quotes on DB query - by coder - 12-05-2014, 07:25 AM
RE: Missing quotes on DB query - by coder - 12-05-2014, 03:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB