|
|
|
update table รบกวนที่คะ พอดีว่าเขียนphpเกียวกับข่าวแล้ว ให้แก้ไขข้อมูลข่าวสาร พอดีงข้อมูลมาแก้ไขก้อขึ้น |
|
|
|
|
|
|
|
if($photo){
$ext=strtolower(end(explode('.',$photo_name)));
if($ext=="jpg"or $ext=="jpeg"or$ext=="gif"){
$filename=$id_edit.".".$ext;
copy($photo,"photo/$filename");
$sql="update tb_new set photo_new='$filename' where id_new='id_edit' ";
mysql_db_query($dbname,$sql);
}
ลองแก้ id_new='id_edit' เป็น id_new='$id_edit'
|
|
|
|
|
Date :
22 พ.ค. 2551 13:44:08 |
By :
tacomsci |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ยังไม่ได้อยู๋ดีค่ะ
ยังไงก้อขอบคุณค่ะ
|
|
|
|
|
Date :
22 พ.ค. 2551 15:11:09 |
By :
I3en_jung |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ลอง ตรวจสอบว่า ชื่อ Field ดูนะครับ ส่วนใหญ่จะเป็นที่ชื่อ Field นะ
|
|
|
|
|
Date :
1 มิ.ย. 2551 13:46:26 |
By :
ohma |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|