From us people:
first : for comparison use == not =
second: your query will allways return records of people with the phone number, and it can return multiple values.
so, you have to use different way to figure out if the number is not there.
It is not clear if you want to show all records if there are multiple matches, but here is one way to show the first match
result = mysql_query("SELECT * FROM whiteboard WHERE client_home_phone = '".$client_home_phone_b."'");
if ($row = mysql_fetch_array( $result )) {
echo "<br><br>open ppw?";
}
else {
echo "<br><br>HI";
}
first : for comparison use == not =
second: your query will allways return records of people with the phone number, and it can return multiple values.
so, you have to use different way to figure out if the number is not there.
It is not clear if you want to show all records if there are multiple matches, but here is one way to show the first match
result = mysql_query("SELECT * FROM whiteboard WHERE client_home_phone = '".$client_home_phone_b."'");
if ($row = mysql_fetch_array( $result )) {
echo "<br><br>open ppw?";
}
else {
echo "<br><br>HI";
}