Intro
In search, i want to make search for age range.
if a user inserts a '-' included input like 10-30 this way i will display list of people age greater than 10 and less than 30.
My Question
$q = mysql_real_escape_string(htmlspecialchars("user input from search field"));
From here before entering to make query i want to make two conditions, One: if there's a '-' in user input or not ? if yes i want to query as according, if not the other way.
So, how can i enter into the first condition ?