|
 |
|
เกิดปัญาหาครับ file config.inc เกิด error ดังนี้ครับ Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: YES) |
|
 |
|
|
 |
 |
|
file config.inc
เกิด error ดังนี้ครับ
Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: YES) in c:\appserv\www\test\config.inc.php on
$host = "localhost" ;
$username = "root" ; // ชื่อในการติดต่อ mysql
$password = "123" ; // password ของคุณในการเชื่อมต่อกับฐานข้อมูล
$db = "member" ; // ชื่อฐานข้อมูลของคุณ กรุณาระบุให้ครบถ้วนนะครับ
$connect = mysql_connect($host,$username,$password) ;<<<,------ บรรทัดที่ 16 ครับ
$home = "www.kmitnb.ac.th" ; // url เว็บไซด์ของคุณ เวลาที่ต้องการเรียก
$admin_email = "[email protected]" ; // อีเมล์ของคุณ
$yourcode = "ip" ; // รหัสนำหน้าหมายเลขสมาชิกของคุณ เช่น ip00001 , abc00005
$member_num_show = 3 ; // จำนวนของสมาชิกที่ต้องการให้แสดงต่อ 1 หน้า ในระบบของ admin
function sendmail_welcome($member_id ,$name, $user_name , $pwd_name1, $email ,$home) {
## ข้อความในการส่งเมล์เมื่อมีผู้สมัครสมาชิก ##
##( หากกด Enter เว้นบรรทัด ข้อความของคุณก็จะเว้นบรรทัดด้วย) ##
global $admin_email ;
$subject_mail = "ขอบคุณมากครับ ที่สมัครสมาชิกกับเรา นี่คือรายละเอียดต่างๆในการเข้าสู่ระบบครับ" ; // หัวข้ออีเมล์
//----------------------------------------------------------------------- เนื้อหาของอีเมล์ //
$message_mail = "สวัสดีครับคุณ $name
user = $user_name
pwd = $pwd_name1
" ;
//------------------------------------------------------------------------ จบเนื้อหาของอีเมล์ //
$from = "From:\"$admin_email\"<$admin_email>" ;
if(mail($email,$subject_mail,$message_mail,$from)) {
echo "<br><br><center><font size='3' face='MS Sans Serif'><b>" ;
echo "ขณะนี้รายละเอียดต่างๆของคุณได้ถูกส่งผ่านไปทางอีเมล์แล้วครับ</b></font></center>" ;
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
9 ก.พ. 2548 01:12:01 |
By :
phpwed |
View :
2949 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
$username = "root" ; // ชื่อในการติดต่อ mysql
$password = "123" ; // password ของคุณในการเชื่อมต่อกับฐานข้อมูล
ให้ถูกก็ได้แล้วนะครับ
|
 |
 |
 |
 |
Date :
9 ก.พ. 2548 09:54:23 |
By :
@W_IN |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
mysql_select_db($db)or die(mysql_error()); //เติมต่อจากบรรทัดที่ 16
|
 |
 |
 |
 |
Date :
9 ก.พ. 2548 15:02:23 |
By :
shakid |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|