A
Anonymous
Guest
I am getting...
"You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
when I run mysql_query if the select statement is built on the fly (ie. $mySQL = "select * from plans where age_id in ($ageList) and deductible_id in ($deductibleList) and type_id in ($typeList)"; )
but if i hard code the result I get if i just echo the above statement it works just fine.
(one that works) $mySQL = "select * from plans where age_id in ('5') and deductible_id in ('1') and type_id in ('1','4','2','3','5')
Thanks in advance
"You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
when I run mysql_query if the select statement is built on the fly (ie. $mySQL = "select * from plans where age_id in ($ageList) and deductible_id in ($deductibleList) and type_id in ($typeList)"; )
but if i hard code the result I get if i just echo the above statement it works just fine.
(one that works) $mySQL = "select * from plans where age_id in ('5') and deductible_id in ('1') and type_id in ('1','4','2','3','5')
Thanks in advance