Hi all, I currently have
$result = mysql_query ("SELECT title_id, title FROM documents_tbl, url_tbl WHERE (documents_tbl.title_id = url_tbl.url_id) AND keywords LIKE '%$temp%' AND title_id != '$myrow[title_id]'"); this works to an extent, but 'keywords' is a text field and if $temp is for example 'stem' I want it to match stem, and maybe stems but not system I thought keywords RLIKE '[\s|^]$temp%[\s|s|$]' this would allow for a word at the start , end, surrounded by whitespace, or plural. Obviously this does not work (why else would I ask you all?). Can anyone tell me what simple concept I have overlooked! thanks Jules --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php