<?php
$con = mysql_connect(" ???? ","root","MY PASS HERE");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
?>
This is my code and I CANT MAKE IT WORK! the "?????" should be localhost or something but no matter what it is i get the "you couldnt connect" error. I think my name is root and i know wat my pass is. Any1 no how to do this ?? plz help!
Are you doing this on your own personal dev machine, or on a production server? Are you on Windows or on Linux? Are you using Appache? Are you fairly positive that MySQL is configured correctly?