|
 |
|
ช่วยด้วยค๊าบบ ดูให้ที edit ไม่ได้(ทั้งๆที่เมื่อคืนยังทำได้อ่ะ) |
|
 |
|
|
 |
 |
|
ไม่มี error เลยครับ แต่ไม่ลง DB อ่ะ ยังงงๆกับตัวเองอยู่เลยคับ
------------------check------------------
<?
@session_start();
if(session_is_registered("s_id"));
{
require_once("../class/connect.php");
require_once("../class/class_person.php");
require_once("../class/position.php");
$oper = new person();
$oposition = new position();
}
?>
<html>
<head>
<title>:: ข้อมูลรายบุคคล ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="stylesheet/template_css.css" type="text/css" />
<style type="text/css"></style>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<?php
include("head.php");
?>
<table border="1" width="911" height="464" align="center">
<tr>
<td width="180" height="458">
<?php
include("menu.php");
?>
<br>
</td>
<td width="715" height="458">
<?
$oper->SearchByID($per_id);
$oper->GetRecord();
$oper->Edit();
$oper->per_id=$per_id;
$oper->per_name=$per_name;
$oper->per_lastname=$per_lastname;
$oper->per_nickname=$per_nickname;
$oper->per_gender=$per_gender;
$oper->per_idcard=$per_idcard;
$oper->per_address=$per_address;
$oper->per_amphoe=$per_amphoe;
$oper->per_province=$per_province;
$oper->per_zipcode=$per_zipcode;
$oper->per_phone=$per_phone;
$oper->per_status=$per_status ;
$oper->per_user=$per_user;
$oper->per_password=$per_password;
$oper->position_id=$position_id;
$oper->Save();
echo"<br><br>";
echo"<table width=60% align=center cellpadding=5 cellspacing=5 b>";
echo"<tr >
<td width=50% valign=top >
<table border=0 width=100% >
<tr><td><font color=#0033CC size=2 face=MS Sans Serif, Tahoma, sans-serif><center><b>ระบบทำการบันทึกข้อมูลที่ท่านแก้ไขแล้วครับ !</b></center></font>
</td>
</tr>
</table>
</tr>";
echo"</table>";
echo"<meta http-equiv='refresh' content='1; URL=manage_owner.php'>";
$oper->Destroy();
?> </td>
</tr>
</table>
</body>
-----------------save---------------
function Save(){
if($this->status == 1){
$sql="update person set per_id='$this->per_id',
per_name='$this->per_name',
per_lastname='$this->per_lastname',
per_nickname='$this->per_nickname',
per_address='$this->per_address',
per_amphoe='$this->per_amphoe',
per_gender='$this->per_gender',
per_idcard='$this->per_idcard',
per_province=$'$this->per_province',
per_zipcode='$this->per_zipcode',
per_phone='$this->per_phone',
per_status='$this->per_status',
per_password='$this->per_password',
position_id='$this->position_id' where per_id = '$this->per_id'";
}
$this->dbc->SetQuery($sql);
}
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-10-16 14:11:47 |
By :
zadaharu |
View :
817 |
Reply :
5 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่บอก error แล้วจะช่วยได้ไหมอา -*-
|
 |
 |
 |
 |
Date :
2009-10-16 14:17:25 |
By :
danya |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่มี error เลยครับ แต่ไม่ลง DB อ่ะ ยังงงๆกับตัวเองอยู่เลยคับ
|
 |
 |
 |
 |
Date :
2009-10-16 14:36:30 |
By :
zadaharu |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่ลง DB นั้นแหละ คือ error ครับ
class DB ไปซ่อนการแสดง error หรือเปล่า
|
 |
 |
 |
 |
Date :
2009-10-16 14:42:57 |
By :
danya |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ทำได้แล้วครับ ขอบคุณมากๆ
|
 |
 |
 |
 |
Date :
2009-10-16 19:11:39 |
By :
zadaharu |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|