$db=Mysql->connect($host, $database, $user, $password); $db->selectdb($database); $run="drop table $idip"; my $sth = $db->prepare($run); $sth->execute();