Thanks everyone. Based on your responses, it looks like I’ll be sending this one back. I thought it might be something I could fix quickly.
One of our clients sent us a script and one of the files had the following in it.
AND catparentid = '".( integer )."'";
Does anyone have any idea why the word “integer” would be inbetween the brackets or what it’s supposed to be doing? I can’t find anything about it online. It’s the ending part of a sql query. The script is complaining about the “.” in this query but I suspect the problem is the “integer” part…?
This is the full query….
$sql = "SELECT * FROM [|PREFIX|]categories WHERE catname = '".$GLOBALS['ISC_CLASS_DB']->quote( $prod )."' AND catparentid = '".( integer )."'";
Thanks!
This is a PHP error and not a MySQL one.
I can only speculate what this script is really supposed to do, but it’s possible they meant to cast a variable to integer because the
catparentidcolumn is an integer type (which is a good idea), but the variable isn’t actually there:However, seeing
[|PREFIX|], it’s more likely just a placeholder as Michael suggests.