Hello everybody,
I want to display the article name based on the article category.I'm writing a search script and when the user types the article category keyword(Ex: Analog, Digital and so on..), I have to show the article names which belong to the keywords.
SELECT * FROM [tablename] WHERE Article_Category LIKE $trimmed ORDER BY article_id ASC;
$trimmed is nothing but, to trim the white space and q is the name of my text box.
$var = @$_GET['q'] ;
//trim whitespace from the stored variable
$trimmed = trim($var);
COuld somebody please tell me whats wrong in my sql statement.
Thanks everybody