Hi all,
My first post!! Apologies in advance....
I am going to use the code below:
$link = mysql_connect('localhost', 'username', 'password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
The password and username are therefore hardcoded into the page. Is this the most secure way of connected MySQL??
Also, i assume there is an easier way of connecting to MySQL on each page other than adding the code (include function....any help?)
Thanks in advance