<?
$hostname="localhost";
$user="root";
$pwd ="1234";
$db="db_devicos";
$link_db=mysql_connect ($hostname,$user,$pwd) or die ("ERROR!"); //บรรทัดที่ 12 ครับ
$charset = "SET NAMES UTF8";
mysql_query($charset) or die('ERROR!'.mysql_error());
if (!mysql_select_db ($db,$link_db)) die ("ERROR!");
?>
Error Coed
Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\AppServ\www\devicos\include\config.inc.php on line 12
Warning: mysql_connect() [function.mysql-connect]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\AppServ\www\devicos\include\config.inc.php on line 12
Fatal error: Maximum execution time of 60 seconds exceeded in C:\AppServ\www\devicos\include\config.inc.php on line 12