Menu
haha my subject….too bad i cant change it
Im trying to make it possible to search people after age so this is what ive done. problem is, the string looks like this and obv that doesnt work.
[code=html]
SELECT * FROM users WHERE country=’asd’ AND state=’zxc”’ > ”” < 1970-01-01
i have been trying to get it to work but i cant. This is the code.
[code=php]
$query = “SELECT * FROM users WHERE country=’$country’ AND state=’$state'”;
$age= $row[‘age’];
if(!is_null($mindate))
$query .= ” AND age='”;
$query .= “‘$age’ > ‘$mindate'”;
if(!is_null($maxdate))
if(!is_null($mindate))
$query .= ” AND “;
$query .= “‘$age’ < $maxdate”;