* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): > Adam Williams wrote: > >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]%'";
I think more precisely: $sql = "select subject from subwhile where subject LIKE '%{$var[0]}%'"; Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php