Currently i am getting the value like this...
$property_buildingorlocation = ($_GET['buildingorlocation']);
Some times the user will input......
buildingname, areaname, cityname (array size to be 3)
arename, cityname (array size to be 2)
cityname (array size to be 1)
hence there will be 2 commas, 1 comma or no comma.
I want to get the data into array, either dynamically set the size of the array depending on number of inputs or commas (sizes mentioned above)
next if array size is 3, then i want to search in three mysql columns (of choice) with an and operator
if array size is 2 then i want to search in two mysql columns (of choice) with an and operator
if array size is 1 then search in 1 mysql column
i know i am pushing it with such an open question, but i need help... i have been at it since morning can't figure it out....