hello,
I've got this
what i want is, when posted trips option is selected to query just the posts that contain 1 in the "req" in the database.
it looks like my script has an error somewhere
I've got this
Code:
<td><select name="req" id="req">
<option value="1">posted trips</option>
<option value="2">requested trips</option>
</select></td>
Code:
if($type == 'like' && $status='1' && $req='1')
{
$sql = 'SELECT * FROM topic WHERE (dstate LIKE '."'%$search%') AND status='1' AND req='1'";
}
it looks like my script has an error somewhere
Comment