That's simply because, as the error message says, DBI::db doesn't have an execute method. Try changing it from $sth = $dbh->execute(); to $sth->execute();
Also, please use code tags when posting code. Thanks.
In reply to Re^3: Cannot run a simple script?help im new
by Tanktalus
in thread Cannot run a simple script?help im new
by ginda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |