Here is the code i have
<?php
mysql_connect ("localhost", "***********","**********") or die (mysql_error());
mysql_select_db ("kelly");
$term = $_POST['term'];
$sql = mysql_query("select * from text where Color like '%$term%' or ItemNumber like '%$term%' or Discription like '%$term%'or Price like '%$term%' or Information like '%$term%' ");
while ($row = mysql_fetch_array($sql)){
echo ''.$row['URL'];
echo '<br/> Discription:  '.$row['Discription'];
echo '<br/> ItemNumber:  '.$row['ItemNumber'];
echo '<br/> Price: $ '.$row['Price'];
echo '<br/><br/>';
}
?>
Here is what i need it to do.
Say you do a search for oreo cookie this is going to search my DB well the only problem is that i dont have any thing close to oreo cookie in there. Right now if i were to do a search for it it would just give me a blank result. What code would i need to add to my code to have it say " The search you just made did not find any thing Please try again"
<?php
mysql_connect ("localhost", "***********","**********") or die (mysql_error());
mysql_select_db ("kelly");
$term = $_POST['term'];
$sql = mysql_query("select * from text where Color like '%$term%' or ItemNumber like '%$term%' or Discription like '%$term%'or Price like '%$term%' or Information like '%$term%' ");
while ($row = mysql_fetch_array($sql)){
echo ''.$row['URL'];
echo '<br/> Discription:  '.$row['Discription'];
echo '<br/> ItemNumber:  '.$row['ItemNumber'];
echo '<br/> Price: $ '.$row['Price'];
echo '<br/><br/>';
}
?>
Here is what i need it to do.
Say you do a search for oreo cookie this is going to search my DB well the only problem is that i dont have any thing close to oreo cookie in there. Right now if i were to do a search for it it would just give me a blank result. What code would i need to add to my code to have it say " The search you just made did not find any thing Please try again"