• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.