Yeah thats what I meant to do, my PHP is very rusty if you can't tell (and so is my SQL) :)


Jay Blanchard wrote:


[snip]

If I have the SQL statement:

$sql = "select subject from subwhile where subject = '*$var[0]*'";


Don't you want to do:
$sql = "select subject from subwhile where subject LIKE '%$var[0]%'";
[/snip]

Not if the variable is exactly what he is looking for.


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to