To make things easier I created a file named "deljobs.php" with following content:

<?php
$serv="localhost";
$user="databaseuser";
$pass="password";
$base="databasename";
...