Fri 22 Feb 2008 11:07:08
if ($file!="") {
$namePic=$HTTP_POST_FILES['file']['name'];
$ext= strtolower(substr($namePic, -3));
$realname =Date("dMYsmmhhss"). "-per.". $ext;
if($tmp_picture){
if(file_exists("../per/".$txtusername.'/images_personnel/'.$tmp_picture)){
unlink("../per/".$txtusername.'/images_personnel/'.$tmp_picture);
}
}
copy ($HTTP_POST_FILES['file']['tmp_name'],"../personnel/images_personnel/$realname");
}else{
$realname =$_POST['tmp_picture'];
}
$images_personnel=$realname;
// รันที่เครื่องตัวเองจะสามารถเก็บรูปลง database ได้ (copy)
// รันที่เครื่อง server จะเก็บได้เฉพาะข้อความครับ ช่วยหน่อยนะครับ
Fri 22 Feb 2008 11:08:58
และก้อเรื่องของ checkbok เลือกหลาย ตัวแล้วลบ ข้อมูล จำทำที่เครื่อง server ลบไม่ได้ครับ
ขอบคุณล่วงหน้าครับ
Fri 22 Feb 2008 20:30:02

















