I'm really new to PHP/MySQL but I got an offer from a friend to set up a site and its going to need some databases... short story made shorter, I was wondering when we actually go to launch the site to the web how exactly our log in code should be written for the database connect
" $connection = mysql_connect("localhost", "root", "root");
if (!$connection) ..yadda yadda "
i mean we wouldnt want to directly place our log in names and password in the html source for everyone to see, right? so I'm wondering how we go about this, making it more secure and everything.
any ideas or solutions are appreciated, thanks.