A
Anonymous
Guest
this code only show the result without photo while unchecked.
i want the code that: if the check box checked, then show the result with photo only, if unchecked, then show all the result
thanks..
search.php
With Photo only<input type="checkbox" name="image" value="1">
seaching.php
i want the code that: if the check box checked, then show the result with photo only, if unchecked, then show all the result
thanks..
search.php
With Photo only<input type="checkbox" name="image" value="1">
seaching.php
Code:
if($_POST['image'] == 1) {
$image=1; }
else {
$image="";
}
$res = mysql_query("SELECT * FROM ".$DBprefix."signup WHERE username like '%$search%' and fullname like'%$name%' and state like'%$state%' and gender like'$gender%' and image='$image'");