|
 |
|
ไมลบข้อมูลในฐานข้อมูลไม่ได้!!!!!!!!!!!!!!!?????????????? |
|
 |
|
|
 |
 |
|
ของผม name=nameเลยครับ
|
 |
 |
 |
 |
Date :
2009-09-22 00:53:43 |
By :
louis1524 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แปวว ถ้าลบตามชื่อมานจาม่ายมีซ้ำกันเหร๋อ ทำไมม่ายรบจากรหัสโครงการอ่ะ งง
|
 |
 |
 |
 |
Date :
2009-09-22 01:00:13 |
By :
gummezaka |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตามที่เจ๊บอกเลยครับไม่งั้นมีปัญหาในการลบแน่นอนถ้าไม่ได้เขียนสคริปดักไว้ว่า ชื่อห้ามซ้ำกันอ่ะครับ
ตกลงลบได้หรือยังเอ๋ย
|
 |
 |
 |
 |
Date :
2009-09-22 01:05:07 |
By :
somparn |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้วครับ ขอบคุณครับ
คือข้อมูลในฐานข้อมูลผมมันมีแค่สองฟิลด์ไงครับ คือ ชื่อโครงการ กับไฟล์โครงการ(เป็นการอัพโหลด โดยเก็บชื่อไฟล์ไว้ในฐานข้อมูล ส่วนไฟล์ก็เก็บในโฟลเดอร์)
เวลาลบก็เลยต้องอ้างจากชื่อ
|
 |
 |
 |
 |
Date :
2009-09-22 01:08:28 |
By :
louis1524 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
$strSQL = "DELETE FROM upfileap ";
$strSQL .="WHERE name = '".$_GET["name"]."' ";
$objQuery = mysql_query($strSQL);
@unlink("./folderเก็บรูปภาพ/ชื่อรูปภาพ");
?>
|
 |
 |
 |
 |
Date :
2009-09-22 01:40:19 |
By :
somparn |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ดูใหม่ ดีๆ ถ้าไม่ไหวจริง ลองพิมใหม่เลย จ้า
|
 |
 |
 |
 |
Date :
2009-10-09 12:58:24 |
By :
apicha31 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|