cgraz wrote:Do a print $sql and copy/paste that to the board so we can see what your query looks like (and what's not being escaped).
It looks like the statement is getting escaped properly, but when I look in the actual database (via phpmyadmin), none of the slashes show up.
printed $sql:
INSERT INTO events_registrants(date, fname, lname, attend_mode) VALUES( '2007-06-25', 'jim\'s ', 'slim\'s', '2' )
Does the fact that my $sql variable declaration and the mysql() function are in two separate if[$_POST] statements screw things up?