Silly question, but I've only ever written databases in Xampp before so hacking was not an issue...
I want to connect to my database and display data from it on a webpage.
$username = "user";
$password = "password???";
$hostname = "host.name";
//db connection
$dbhandle = mysql_connect($hostname, $username, $password)
or die("Can't connect");
echo "Connected to MySQL<br>";
I'm not too sure I want to advertise my database's password online; I'm guessing I can encrypt it with something (I only used md5 before, which I've now found is not an effective way to do this).
Can someone shine some light here? I've been searching for an hour and can't seem to find much.