That seemed to work for fixing the syntax error...
That fixed the syntax error but not I'm receiving an error stating " Unknown column 'colname' in 'where clause' ". They're declared in the code right above the recordset.
$colname_rsProduct = "-1";
if (isset($_GET['id_category'])) {
$colname_rsProduct = (get_magic_quotes_gpc()) ? $_GET['id_category'] : addslashes($_GET['id_category']);
}
$colname2_rsProduct = "-1";
if (isset($_GET['id_collection'])) {
$colname2_rsProduct = (get_magic_quotes_gpc()) ? $_GET['id_collection'] : addslashes($_GET['id_collection']);
}
How could I fix the WHERE statement?