this is script to connect to a database
$link = mysql_connect("localhost","username","password"
mysql_select_db("bookstore_db"
if you don`t use phpmyadmin to determine username and password you want to run your SQL statement from PHP file
How are you determine the username and password from PHP file?