in reply to Re^3: s/// not replacing data
in thread s/// not replacing data

how are you assigning the results of $sth->fetch() to $badword?
The OP's doing a bind_columns after the execute:
$sth->bind_columns(\$id, \$badword);
Although the code should check the return result, unless he's using RaiseError.

Replies are listed 'Best First'.
Re^5: s/// not replacing data
by davido (Cardinal) on Oct 31, 2005 at 16:46 UTC

    Ya-all are right. I remember the old Usenet philosophy: If you post a question, you'll get an answer or two. Post an error and you'll get a whole slew of good answers. ;)


    Dave