|
 |
|
ผมเขียนFormส่งข้อมูลไปที่ Ch_Idmember (ตรวจสอบมี IDmemberไหมถ้าไม่มีให้บันทึกข้อมูล)รันแล้วerrorมึน |
|
 |
|
|
 |
 |
|
ผมเขียนFormส่งข้อมูลไปที่ Ch_Idmember (ตรวจสอบมี IDmemberไหมถ้าไม่มีให้บันทึกข้อมูล)รันแล้วerrorว่าParse error: syntax error, unexpected $end in C:\AppServ\www\Admin\Ch_Idmember.php on line 38
เพราะอะไรต้องแก้ยังไงคับ มึนคับ โคว์ที่เขียนคือ
<?php
ob_start();
session_start();
include("config.php");
mysql_query("SET NAMES 'tis620'");
$username = $_POST["username"];
$password = $_POST["password"];
$IDMember = $_POST["IDMember"];
if(isset($username)){
$sql = "select * from applymember where IDMember='$IDMember'" ;
$result = mysql_query($sql,$conn);
$numrow = mysql_num_row($result);
if($numrow!=0){
if($numrow)
{
$addmember = "รหัสสมาชิก $IDMember มีแล้ว";
$_SESSION['ses_addmember'] = $addmember;
header('Location:Applymember2.php');
// มีข้อมูล ไม่ทำการบันทึก
}
else
{
$sql = "INSERT INTO applymember
(IDMember , pwmember , DayApply , names, people, birthday,address, province, phon,Bookbank ,bankAccount ,Padvise ,Nadvise ,Pup ,Nup,beside )
VALUES
('$IDMember' , '$pwmember' , '$DayApply','$names', '$people','$birthday', '$address', '$province', '$phon', '$Bookbank', '$bankAccount', '$Padvise', '$Nadvise', '$Pup','$Nup','$beside')";
$addmember = "บันทึก $IDMemberแล้ว";
$_SESSION['ses_addmember'] = $addmember;
header('Location:Applymember2.php');
}
mysql_query($sql, $conn);
mysql_close();
?>
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-07-30 14:36:38 |
By :
gofgof |
View :
951 |
Reply :
4 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองเช็ค ปีกกา } ดูครับ
|
 |
 |
 |
 |
Date :
2009-07-30 15:10:51 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คุณ A-mac ไวจริงๆ ....ตอบช้าแค่ 27 วินาที 
|
 |
 |
 |
 |
Date :
2009-07-30 15:12:55 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณคับแค่ปีกกานะ จะรอทำดูขอบคุณคับ
|
 |
 |
 |
 |
Date :
2009-07-30 15:39:59 |
By :
gofgof |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|