|
 |
|
ช่วนหน่อยค่ะบันทึกไม่ลงฐานข้อมูลค่ะ ... บันทึกรายละเอียดของคุณลงสมุดเยี่ยม ... เรียบร้อยแล้ว |
|
 |
|
|
 |
 |
|
<?php
include "config.php";
$name = $_POST['name'];
$email = $_POST['email'];
$url = $_POST['url'];
$comments = $_POST['comments'];
if ($name == "" or $email == "" or $url == "" or $comments == "") {
echo "<center><font color=red>กรุณาป้อนข้อมูลให้ครบด้วยครับ</font><br>";
echo "<a href= book.php>กลับไปกรอกข้อมูล</a>";
}
$sql = "INSERT INTO $tbl (name, email, url, date_signed, comments) VALUES ('$name', '$email', '$url', '$date_signed', '$comments')";
mysql_query($sql);
mysql_close();
echo "<Font Size=4><B>บันทึกรายละเอียดของคุณลงสมุดเยี่ยม ... เรียบร้อยแล้ว";
echo "<Br>ขอขอบคุณสำหรับข้อเสนอแนะที่เป็นประโยชน์</B>";
echo "<BR><BR><A Href=showguest.php>ดูสมุดเยี่ยม</A>";
}
?>
พอรันแล้วมันจะขึ้นแบบนี้ค่ะ.
กรุณาป้อนข้อมูลให้ครบด้วยครับ
"; echo "กลับไปกรอกข้อมูล"; } $sql = "INSERT INTO $tbl (name, email, url, date_signed, comments) VALUES ('$name', '$email', '$url', '$date_signed', '$comments')"; mysql_query($sql); mysql_close(); echo "บันทึกรายละเอียดของคุณลงสมุดเยี่ยม ... เรียบร้อยแล้ว"; echo "
ขอขอบคุณสำหรับข้อเสนอแนะที่เป็นประโยชน์"; echo "
ดูสมุดเยี่ยม"; } ?>
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-12-02 15:28:54 |
By :
นิหน่า |
View :
903 |
Reply :
2 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ทำไมมันขึ้น Tag PHP แทนที่จะเป็น Error น่ะครับ ตรวจสอบตรงนี้ให้ถูกต้องด้วยน่ะครับ
|
 |
 |
 |
 |
Date :
2009-12-02 17:35:11 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอาเครื่องหมาย } อันล่างสุดออกแล้วจะได้แบบนี้ลองดู
Code (PHP)
<?php
include "config.php";
$name = $_POST['name'];
$email = $_POST['email'];
$url = $_POST['url'];
$comments = $_POST['comments'];
if ($name == "" or $email == "" or $url == "" or $comments == "") {
echo "<center><font color=red>กรุณาป้อนข้อมูลให้ครบด้วยครับ</font><br>";
echo "<a href= book.php>กลับไปกรอกข้อมูล</a>";
}
$sql = "INSERT INTO $tbl (name, email, url, date_signed, comments) VALUES ('$name', '$email', '$url', '$date_signed', '$comments')";
mysql_query($sql);
mysql_close();
echo "<Font Size=4><B>บันทึกรายละเอียดของคุณลงสมุดเยี่ยม ... เรียบร้อยแล้ว";
echo "<Br>ขอขอบคุณสำหรับข้อเสนอแนะที่เป็นประโยชน์</B>";
echo "<BR><BR><A Href=showguest.php>ดูสมุดเยี่ยม</A>";
?>
|
 |
 |
 |
 |
Date :
2009-12-02 20:08:00 |
By :
naskw |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|