i use the folowing code for a connection to a database:
/* Connecting, selecting database */
$link = mysql_connect("localhost", "root", "") or die("Could not connect");
//echo "Connected successfully";
mysql_select_db("cltbooking") or die("Could not select database");
which is inserted in a file and for any file which use a database connection I just use:
between the <head> tags
.... a now problem received.
For your delete page i use the following steps:
1. open the delete page and show up the details regarding the record
2. after the click on a delete button the record is delete, the main page is refreshed and the curent window is closed.
please let me know if i succeded to help you