I have a php script that changes a database when the page is requested. Here is the php:
$con=mysqli_connect("server","db","user","password");//establish connection
you need to define those variables
DEFINE('SERVER', 'localhost'); DEFINE('db','whatever'); DEFINE('user','nickcage'); DEFINE('password','conair');