How can I have a keyword search box - that you can actually type in a word and search for associated results? Thanks
I'll point you in the right direction, but you have to do the rest yourself. if (!empty($_REQUEST['keyword'])) { $query = mysql_query(" SELECT * FROM table_name WHERE field_name LIKE '%" . mysql_real_escape_string($_REQUEST['keyword']) . "%' ") OR die(mysql_error()); while ($result = mysql_fetch_assoc($query)) { echo $result['field_name'], "<br />\n"; } if (!$result) { echo 'No results found'; } } PHP:
well, is their any code to search inside an array using $_GET OR POST? like we have 10 elements in an array: if we search a word of element a it will give us element a as result
^^ Please start your own thread for separate questions that don't have anything to do with the original topic.