in reply to Re: What's Wrong With This?
in thread SQL causing 500 error (was: What's Wrong With This?)

you need to use: $sth->do( SQL STATEMENT HERE ); for one liners and $SQL = " SQL STATEMENT HERE "; $sth->prepare($SQL); for statements you want to prepare and execute over and over again.