Don't you want to do: $sql = "select subject from subwhile where subject LIKE '%$var[0]%'";
I think more precisely: $sql = "select subject from subwhile where subject LIKE '%{$var[0]}%'";
Either will work, as will $sql = "... subject LIKE '%$var[string_index]%'";
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php