I have been trying to make a search engine for my database, but no luck
what I'm trying to do is to search database in more than a column,
I have tried $select = "SELECT * FROM letter_cast WHERE name LIKE '%".$_GET['content']."%' AND title LIKE '%".$_GET['content']."%'";
but no luck, I guess there is something different in the whole script,here is the script (I have downloaded it from here )
// You can do anything with the data. Just think of the possibilities!
include('conn.php');
$strlen = strlen($_GET['content']);
$display_count = $_GET['count'];
$select = "SELECT * FROM letter_cast WHERE name LIKE '%".$_GET['content']."%' AND title LIKE '%".$_GET['content']."%'";
$res = mysql_query($select);
$rec_count = mysql_num_rows($res);
if($display_count)
{
echo "There are <font color='red' size='3'>".$rec_count."</font> matching records found.Click Search to view result.";
}