[thelist] merging a dictionary to sql table

k.voronin at e3internet.com k.voronin at e3internet.com
Wed Nov 16 03:17:01 CST 2005


Alex,

> if ($handle) {
>    while (!feof($handle)) {
>    $buffer = trim(fgets($handle, 4096));
>$query_string = "SELECT word FROM word_list WHERE word = '$buffer'";

probably you need use functions to strip quotes or replace them.

try this,
for example, $buffer = quotemeta ( $buffer ) ;

or function eregi_replace("'", "", $buffer);


Kirill




More information about the thelist mailing list