|
 |
|
รูปภาพไม่update เวลาที่แก้ไข ทำไงค่ะ ชือไฟล์ลงในDB และรูปภาพก็ update เก็บอยู่ใน Floder แต่หน้าที่แสดงข้อมูลรูปภาพ |
|
 |
|
|
 |
 |
|
ใช้ javascript สั่งให้หน้าต่างนั้น refresh หลังจาก update แล้วสิครับ
|
 |
 |
 |
 |
Date :
2009-06-23 15:51:33 |
By :
xallz |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองใส่ไว้ใต้โค้ด อัพเดทลง sql ดูครับ
|
 |
 |
 |
 |
Date :
2009-06-23 17:31:09 |
By :
slipknotbel |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code
$sql1="UPDATE `user` SET `username`='$username' , `password`='$password', `status`='$status', `name`='$name',`surname`='$surname',`phone`='$phone',`phonegrup`='$phonegrup', `nickname`='$nickname',`grup`='$grup',`sex`='$sex',`bday`='$bday', `bmon`='$bmon',`byear`='$byear',`email`='$email',`picture`='$picture_name' WHERE user_id='$user_id'LIMIT 1;";
$result=mysql_query($sql1);
mysql_close($connect);
echo "<meta http-equiv='refresh' content='4 ;url=user_home.php?show=edit&user_id=$user_id'>";
แบะนี้อ่ะ
|
 |
 |
 |
 |
Date :
2009-06-23 17:34:18 |
By :
slipknotbel |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โทดทีไม่ได้ตัดโค้ดให้ เลยยาวไปหน่อย ฝากลบทีนะครับ
|
 |
 |
 |
 |
Date :
2009-06-23 17:40:28 |
By :
slipknotbel |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณ คุณbellyมากนะค่ะ
|
 |
 |
 |
 |
Date :
2009-06-23 19:35:02 |
By :
doramelovely |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองทำตามแล้วนะค่ะแต่มันไม่ Refresh ให้ค่ะ
|
 |
 |
 |
 |
Date :
2009-06-23 22:02:58 |
By :
doramelovely |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณค่ะ
|
 |
 |
 |
 |
Date :
2009-06-24 14:02:06 |
By :
doramelovely |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|