function connect_db($database) { //Դ͡Ѻҹ $serverName = 'localhost'; $userName = 'root'; $password = 'science'; $con = mysql_pconnect($serverNane,$userName,$password); if(!mysql_select_db($database)) return false; mysql_query( "set names 'latin1'" ) or die( "can not set name" ); return $con; } ?>ไม่สามารถติดต่อกับฐานข้อมูลได้