ต้องการ update เพิ่มอีก 1 ไฟล์รูปครับ จะต้องเพิ่มโค้ดตรงหนัยบ้างกคับ
if(!empty($file))
{
$path="../picture"; == อัพโหลตไฟลืเล็ก
@copy( $file ,"$path/$file_name");
$sql_up = "update product set Picture='$file_name' where ProductID='$_GET[ProductID]'";
$dbquery_up = mysql_query($sql_up);
}
เกี่ยวกับการ insert รูปครับ ช่วยด้วยครับ
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP Newbie
- Posts: 2
- Joined: 17/06/2011 10:53 am
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 26562
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: เกี่ยวกับการ insert รูปครับ ช่วยด้วยครับ
ถ้าจะเพิ่มต้อง INSERT ครับ ไม่ใช่ UPDATE
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
- dexjanghan
- PHP Sr. Member
- Posts: 68
- Joined: 02/03/2011 5:36 pm
Re: เกี่ยวกับการ insert รูปครับ ช่วยด้วยครับ
ใช่ครับ ผมลองแล้ว ใช้ได้จริงๆ
มื่อใหม่หัดใช้ PHP แต่คล่อง Joomla ซะมากกว่า
แวะเวียนเว็บโหลๆhttp://www.dexjanghan.com
แวะเวียนเว็บโหลๆhttp://www.dexjanghan.com
-
- Similar Topics
- Replies
- Views
- Last post
-
-
รบกวนหา error เกี่ยวกับการ insert - update ข้อมูลให้หน่อยนะคะ
by มะลิ » 07/04/2011 10:59 am » in Programming - PHP - 1 Replies
- 1043 Views
-
Last post by touleg
07/04/2011 2:21 pm
-
-
-
ช่วยด้วยครับ!! ต้องการ insert ข้อมูลเพิ่มอีกตราง ครับ
by Ronnarit4921158 » 22/07/2011 8:27 am » in Programming - PHP - 2 Replies
- 1459 Views
-
Last post by mindphp
22/07/2011 10:39 pm
-
-
-
ถ้าจะเขียน SQL Insert เเล้วไม่ให้มัน Insert ซ้ำในคำสั่งเดียว จะเขียนได้ยังไงค่ะ
by thatsawan » 21/10/2016 2:37 pm » in SQL - Database - 1 Replies
- 1855 Views
-
Last post by mindphp
21/10/2016 2:45 pm
-
-
-
c# อันนี้เป็น tip เล็กๆ เกี่ยวกับการ ตัด string ครับ
by jataz2 » 22/02/2011 5:12 pm » in Programming - C/C++ & java & Python - 1 Replies
- 3240 Views
-
Last post by suzy22
27/05/2011 10:23 am
-
-
-
สอบถาม เกี่ยวกับการ dump ค่าใน obj ออกมาดูต้องทำอยางไรครับ
by jirawoot » 03/07/2019 10:11 am » in Programming - C/C++ & java & Python - 1 Replies
- 347 Views
-
Last post by jirawoot
04/07/2019 10:06 am
-
-
-
c# insert ข้อมูลที่ละมากๆ โดยไม่ใช้การ insert into
by jataz2 » 25/11/2016 4:20 pm » in Programming - C/C++ & java & Python - 0 Replies
- 904 Views
-
Last post by jataz2
25/11/2016 4:20 pm
-
-
-
ช่วยด้วยครับ โค้ดไม่ถูกสีักที
by death note » 05/02/2013 9:13 pm » in Programming - C/C++ & java & Python - 0 Replies
- 1300 Views
-
Last post by death note
05/02/2013 9:13 pm
-
Who is online
Users browsing this forum: eange08, Majestic-12 [Bot] and 19 guests