pinoywebdev
March 22nd, 2008, 01:01 AM
$sql = "select schedule.* from schedule where schedule.street LIKE '%$stname%' AND schedule.number='$stnumber' AND schedule.type='$sttype' ";
When I am doing the sql as shown above... it could not select the record although it is there.
When I do it this way:
$sql = "select schedule.* from schedule where schedule.street LIKE '%$stname%' AND schedule.number='$stnumber'";
It can select the record.
Why is it?
Does having AND'ng 3 conditions does not work in mysql?
When I am doing the sql as shown above... it could not select the record although it is there.
When I do it this way:
$sql = "select schedule.* from schedule where schedule.street LIKE '%$stname%' AND schedule.number='$stnumber'";
It can select the record.
Why is it?
Does having AND'ng 3 conditions does not work in mysql?