Can someone tell me how to get the following database search to work? The special characters in the $find variable (especially the > and <) keep giving me parsing errors: $find="<?php include 'iv_inline.php' ?>"; $result=mysql_query("SELECT * FROM Articles WHERE Article LIKE '%$find%'") or die(mysql_error()); PHP: I've read dozens of suggestions online about how to get this to work and so far none of the solutions have worked for me. I've tried dealing with the < and > special characters by using htmlentities, add_slashes, mysql_real_escape_string, etc.... and so far nothing works. To summarize: How can I search for strings using LIKE when the string contains < and > Thanks for any help. Brian
$result=mysql_query(" SELECT * FROM Articles WHERE Article LIKE '%<%' AND Article LIKE '%>%' ") or die(mysql_error());
Thanks. But is there no way to search for an entire phrase that contains < and > rather than just searching for < and > by theirselves?