|
 |
|
Mailinglist ไม่ลงฐานข้อมูล รบกวนดู Code ให้ด้วยครับ แต่บันทึกมันฟ้องว่าบันทึก แต่ไม่ลงฐานข้อมูล |
|
 |
|
|
 |
 |
|
Code (PHP)
$result=mysql_db_query($dbname,$sql) or die(mysql_error());
ดู Error หน่อยครับ
|
 |
 |
 |
 |
Date :
2009-11-17 06:43:55 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมลองแล้วยังขึ้น Error อยู่
|
 |
 |
 |
 |
Date :
2009-11-20 01:31:40 |
By :
nam |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
connection ผิดพลาดมั้งครับ
|
 |
 |
 |
 |
Date :
2009-11-20 01:57:26 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ทำยังงัยดีครับ พี่ ฐานข้อมูลก็ไม่เข้า
<?php
$host = "localhost" ;
$user = "root" ; // ชื่อในการติดต่อ mysql
$passwd = "root" ; // password ของคุณในการเชื่อมต่อกับฐานข้อมูล
$dbname= "datademo" ; // ชื่อฐานข้อมูลของคุณ กรุณาระบุให้ครบถ้วนนะครับ
$connec = mysql_connect($host,$user,$passwd) or die("ติดต่อ Host ไม่ได้");
mysql_select_db($dbname) or die("ติดต่อฐานข้อมูลไม่ได้");
$home = "http://www.thaichrist.org" ; // url เว็บไซด์ของคุณ เวลาที่ต้องการเรียก
$admin_email = "[email protected]" ; // อีเมล์ของคุณ
$yourcode = "ip" ; // รหัสนำหน้าหมายเลขสมาชิกของคุณ เช่น ip00001 , abc00005
$member_num_show = 10 ; // จำนวนของสมาชิกที่ต้องการให้แสดงต่อ 1 หน้า ในระบบของ admin
$num="";
?>
ช่วยผมหน่อยครับพี่
|
 |
 |
 |
 |
Date :
2009-11-21 01:58:21 |
By :
nam |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองเปลี่ยนเป็นแบบนี้ดูนะ
Code (PHP)
$result=mysql_query($sql) or die(mysql_error());
ยัง error อยู่ไหม แล้ว user password เป็น root จริงหรอ แต่ก็น่าจะจริง เพราะไม่ฟ้อง ติดต่อ Host ไม่ได้
ลองใช้โค๊ดข้างบนดูเพราะ select_db ไปแล้ว
|
 |
 |
 |
 |
Date :
2009-11-21 02:10:44 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ยังเป็นอยู่ครับพี่ งงเหมือนกัน
|
 |
 |
 |
 |
Date :
2009-11-22 06:20:04 |
By :
nam |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Error เหมือนกันเลยครับ T_T
กำลังนั่ง งง อยู่เลย
|
 |
 |
 |
 |
Date :
2009-11-22 11:32:12 |
By :
yomaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มีวิธีอื่นอีกไหมพี่ ผมหมดแม็กละ มึนมาก
|
 |
 |
 |
 |
Date :
2009-11-23 02:28:37 |
By :
nam |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|