in reply to INSERT Problem
You'd better go check your logs to see what the script is complaining about (I bet there's some useful info in there ;-)
I would slightly alter your code though, using placeholders (and die with the error message):
$sth = $dbh->prepare("INSERT INTO email (f_name, l_name, code, ext, em +ail) VALUES (?,?,?,?,?)"); $sth->execute($FNAME, $LNAME, $STR, $CT5, $EMAIL) || die $sth->errstr;
And don't forget we have some nice Tutorials on DBI related subjects :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: INSERT Problem
by Anonymous Monk on Apr 28, 2004 at 19:50 UTC | |
by Sandy (Curate) on Apr 28, 2004 at 20:01 UTC |