The statement below is the problem. After i have searched 3 fields in my table for a name, I want to execute the code below if no match were found. My problem is with the first line.
if ($searchdata<>"$w1")
I'm searching 3 fields:w1, w2, w3. This only checks field w1. I need to check all 3 before the else statement.
ANY Suggestions?
===============================================================================
if ($searchdata<>"$w1"){
echo "<p align=\"left\"> <font size=\"+2\" color=\"#DE3A53\">!</font> <font size=\"+1\">No Results Found Matching:</font><b> <font color=\"#DE3A53\">$searchdata</font></b><img src=\"clear.gif\" width=\"250\" height=\"1\">[<a href=\"index.php\">Go Back</a>] </p>";
}
else