I have a tutor database (MySQL) which store tutor available subjects, example:- tutor1 available subject = A,B,C tutor2 available subject = A,B tutor3 available subject = A
SearchTutor.php içinde;
<select id="select3" class="medium" name="upsr">
<option selected="selected" value="%">-</option>
<option value="A">A only</option>
<option value="A,B">A and B only</option>
<option value="A,B,C">All Subjects</option>
</select>
DisplayTutor.php içinde;
$subjectin = '';
$subdescription = '';
if(strlen($upsr) > 1)
{
$subjectin .= "'106',";
if($upsr == "A")
$subdescription .= "'A',";
else if($upsr == "A,B")
$subdescription .= "'A','B',";
else if($upsr == "A,B,C")
$subdescription .= "'A','B','C',";
else
$subdescription .= "'".$upsr."',";
}
so.. what i want is, when i choose "A only", the result should be tutor3, because i want "A only", those tutor with A,B,C is not qualify, same goes to when i choose "All Subjects", the result should be tutor1, because only tutor1 have all subjects,
ama benim kodlama, ben bunun yanlış olduğunu biliyorum, orada kimse bana bu çözmeye yardımcı olabilir mi?
^ ^, Sen programcı ederiz