ต้องการ isert ข้อมูลเพิ่มอีกตราง จะต้องเพิ่ม code อย่างไรครับ
(โค้ดด้านล้างอัพเดทตราง product) (ต้องการอัพเดทเพิ่มอีกตรางครับ คือตราง state ครับ)
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 Full Member
- Posts: 38
- Joined: 08/01/2011 11:22 am
Re: ช่วยด้วยครับ!! ต้องการ insert ข้อมูลเพิ่มอีกตราง ครับ
ใช้โค้ด ALTER TABLE 'product' ADD 'state' VARCHAR(xx) NOT NULL AFTER 'xx' ;
ลองดูนะครับ
ลองดูนะครับ
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 27212
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: ช่วยด้วยครับ!! ต้องการ insert ข้อมูลเพิ่มอีกตราง ครับ
ตาราง หรือ filed
ติดตาม 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
-
- Similar Topics
- Replies
- Views
- Last post
-
-
เกี่ยวกับการ insert รูปครับ ช่วยด้วยครับ
by RonnaritBooyyarit » 20/06/2011 10:19 am » in Programming - PHP - 2 Replies
- 1080 Views
-
Last post by dexjanghan
22/06/2011 10:06 am
-
-
-
ต้องการ insert ข้อมูล list/menu ลงฐานข้อมูล เเต่ทำตัวเเปรจัดเก็บไม่เป็นครับ
by RonnaritBooyyarit » 24/06/2011 10:35 am » in Programming - PHP - 1 Replies
- 2880 Views
-
Last post by mindphp
24/06/2011 12:44 pm
-
-
- 4 Replies
- 1589 Views
-
Last post by thatsawan
25/07/2018 9:36 am
-
- 6 Replies
- 2619 Views
-
Last post by mindphp
16/11/2011 8:10 pm
-
-
สอบถามเรื่องการ insert ข้อมูลในรูปแบบ multiple ครับ
by Nueng Chiramet » 21/10/2017 7:47 pm » in Programming - PHP - 2 Replies
- 1295 Views
-
Last post by Nueng Chiramet
29/12/2017 9:14 pm
-
-
-
สอบถามเรื่องการ insert ข้อมูลในรูปแบบ multiple ครับ
by Nueng Chiramet » 21/10/2017 7:59 pm » in Programming - PHP - 1 Replies
- 765 Views
-
Last post by mindphp
21/10/2017 8:15 pm
-
-
-
ติดปัญหาเรื่องการ insert ข้อมูลไม่เข้า mysql ครับ
by โอคิว » 29/01/2015 2:50 pm » in Programming - PHP - 1 Replies
- 678 Views
-
Last post by mindphp
30/01/2015 2:37 am
-
-
-
เกี่ยวกับ การ Insert 2 ตาราง ตามเงื่อนไข ครับ ช่วยที.........
by dexjanghan » 29/03/2012 1:14 pm » in Programming - PHP - 1 Replies
- 2110 Views
-
Last post by mindphp
30/03/2012 11:45 am
-
Who is online
Users browsing this forum: Bing [Bot] and 12 guests