in my php file, I have:
<?php // hostname or ip of server $servername='localhost'; // username and password to log onto db server $dbusername=''; $dbpassword=''; // name of database $dbname='s12921685'; connecttodb($servername,$dbname,$dbusername,$dbpassword); ////////////// Do not edit below///////// function connecttodb($servername,$dbname,$dbuser,$dbpassword) { global $link; $link=mysql_pconnect ("$servername","$dbuser","$dbpassword"); if(!$link){die("Could not connect to MySQL");} mysql_select_db("$dbname",$link) or die ("could not open db".mysql_error()); } ?>
btw, mysql database is hosted locally without username and passwordplz help