How to connect to mysql with php
Posted by: Brad99
Posted on: 2008-07-25 13:38:00
Hi, I am looking for advice as to what to use for the server name(I used localhost) parameter when trying to connect to a mysql database. I am using this but getting an error. Any ideas?
$connection=mysql_connect (localhost, $username, $password);
if (!$connection) {
die('Not connected : ' . mysql_error());