If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> And here are the error messages: If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> And here are the error messages: <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> If anyone can tell what I'm doing wrong, I will be greatly appreciaed. Here is the php code. <? $connection = mysql_connect("localhost", "daniel", "216900") or die("Couldn't connect."); if ($connection) { $msg = "Success!"; } ?> <HTML> <HEAD> <TITLE>MySql Connection</TITLE> </HEAD> </HEAD> <BODY> <? echo "$msg"; ?> </BODY> </HTML> Here are the error messages: Warning: MySQL Connection failed: Can't connect to local MySql server through socket '/var/lib/mysql/mysql.sock (111) in /var/www/html/db connect.php on line 2d Couldn't connect. Please,please helop or show me some pointers. Best, Daniel -------------------------------------------- Daniel Goldin [EMAIL PROTECTED] Creative Director 323.225.1926 BlueLamp Productions www.blue-lamp.com If anyone can tell what I'm doing wrong, I will be greatly appreciaed.
--------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php