why this condition not work
- by migo
*strong text*I noticed that the first condition does not work
if (empty($ss))
{
echo "please write your search words";
}
but the second work
else if ($num < 1 ) {
echo "not found any like ";
full code
if (empty($ss))
{
echo "please write your search words";
}
else if ($num < 1 ) {
echo "not found any like ";
}else {
$sql=("SELECT * FROM student WHERE snum = $ss ");
$rs = mysql_query($sql) or die(mysql_error());
while($data=mysql_fetch_array($rs)){
?
???????
?????
?????
????
????
??????
100
100
100
100
100
?????? ????????
????? ??????
????? ???????
?????? ???????
}
};
?