Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\AppServ\www\ir\includes\db_connect.inc.php on line 5
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\ir\includes\db_connect.inc.php on line 6
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\ir\includes\db_connect.inc.php on line 6
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\ir\includes\db_connect.inc.php on line 7
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\AppServ\www\ir\includes\db_connect.inc.php on line 7
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\ir\index.php on line 8
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\ir\index.php on line 8
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\ir\index.php on line 9
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\ir\index.php on line 12
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\ir\index.php on line 12
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\ir\index.php on line 13
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\ir\includes\db_connect.inc.php on line 11
ส่วน โคดนะคะ
connect_db();
$sql = "SELECT * FROM `job_info` ORDER BY 'job_id' DESC LIMIT 20";
$resultx = mysql_query($sql);
$rows = mysql_num_rows($resultx);
$sql = "SELECT * FROM `job_info` ORDER BY 'viewed' DESC LIMIT 20";
$resulty = mysql_query($sql);
$rows_ = mysql_num_rows($resulty);
ทำไงดีค่ะ มันติดต่อฐานข้อมลูไม่ได้อ่าค่ะ
Tag : - - - -
Date :
6 มิ.ย. 2550 21:50:21
By :
voodoo_child
View :
12357
Reply :
13
No. 1
Guest
นี่เปนส่วนของฐานข้อมลูนะคะ http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 01, 2007 at 04:17 AM
-- Server version: 5.0.24
-- PHP Version: 4.4.4
--
-- Database: `jobs`
--
could you help me identify the following warning message what is wrong with my connection to server?
"Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /hermes/bosweb/web243/b2439/ipg.neweraplus/test_connect.php on line 9
Connected successfully
Warning: mysql_close(): no MySQL-Link resource supplied in /hermes/bosweb/web243/b2439/ipg.neweraplus/test_connect.php on line 12"