พบกับบทความเกี่ยวกับคอมพิวเตอร์และ programming ได้ที่ http://articles.modoeye.com
PHP development / ช่วยดู code นี้หน่อยครับ
โจม
โจม
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 ลบไม่ได้ครับ

ขอบคุณล่วงหน้าครับ

webmaster
webmaster
Fri 22 Feb 2008 20:30:02
ผมได้เขียนไว้ใน article.modoeye.com แล้วครับลองหาดูครับ
Reply
Name:
E-mail:
Home | Services | Forum | Classified | Directories | Support | Contact
ATOM feed RSS 0.9 feed RSS 1.0 feed RSS 2.0 feed
Copyright © 2005 - 2007 Modoeye.com, All Rights Reserved.
Disclaimer | Privacy policy | Term of Use | Term of Services
Valid XHTML Valid CSS! PHP: Hypertext Preprocessor MySQL database Apache Powered! FreeBSD Power to serve
Modoeye Sitemap Client login