cheers, thats what i was looking for!!
Now i have another problem! My search sql is playing up! For example, if i search for the word "stan", i know that this only has one occurance in the table im searching. When the search is performed, it brings back 5 results. Each of the results links to the correct entry, but it prints every row in the table in the process (hence bringing back 5 results)
Is there a problem with the query im using?
$sql = "SELECT table1.user_name, table1.user_id FROM table1, table2
WHERE table2.description LIKE '%" . $_POST[keywords] . "%'
AND table1.user_id = table2.user_id
AND table2.group_id = '2'";