I'd like to allow end users to search the "title" row of my database for two text variables.
The original Code (that allowed for one variable and worked) is:
$sql = "SELECT * FROM database_table WHERE title LIKE '%$textsearch%' ORDER by title ASC ";
What I tried to do was just ADD on the second LIKE(which doesn't work) :
$sql = "SELECT * FROM database_table WHERE title LIKE '%$textsearch%' AND LIKE '%$textsearch2%' ORDER by title ASC ";
No-Go.
Any help would be much appriciated.