Jump to content

[SOLVED] A little PHP help!


buds2000

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/56487-solved-a-little-php-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.