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

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