|
 |
|
ผมมีฐานข้อมูล แล้วจะให้ออกมาเป็น ใบสั่งซื้อสินค้า เขียนcode อย่างไงบ้างครับ |
|
 |
|
|
 |
 |
|
รบกวนผู้รอบรู้ ช่วยทีครับ
ฐานข้อมูลผมมีดังนี้ โดยเอาส่วนที่จะแสดงออกของ ใบสั่งซื้อสินค้า
1 member สมาชิก
- memid รหัสสมาชิก
- memfname ชื่อสมาชิก
- memlname สกุลสมาชิก
- memaddress ที่อยู่สมาชิก
- memphone เบอร์ติดต่อสมาชิก
- mememail อีเมลสมาชิก
- mempass พลาสสมาชิก
2 ordercus ส่วนสั่งซื้อสินค้า
- odid รหัสสั่งซื้อ
- oddate วันที่สั่งซื้อ
- memid รหัสสมาชิก
- payid รหัสการชำระเงิน แบ่งออกเป็น ชำระผ่านทางบัญชีธนาคารกับเงินสด
3 orderpro
- odid รหัสสั่งซื้อ
- productid รหัสสินค้า
- odqty จำนวนของสินค้าที่สั่งซื้อ
4 pay
- payname การชำระเงิน(ธนาคารม,เงินสด)
- payid รหัสการชำระเงิน
5 product
- productid รหัสสินค้า
- protypeid รหัสประเภทสินค้า
- prodetail รายละเอียดสินค้า
- proprice ราคาหน้าร้าน
- prosale ราคาขาย
- image ภาพ
- productname ชื่อสินค้า
- contentype image/gif
โดยลูกค้าทำการสั่งซื้อเสร็จแล้ว ข้อมูลก็จะเข้าแยกไปทาง
ordercus จะแสดง วันที่สั่งซื้อ กับ รหัสสมาชิก ที่สมาชิกได้สั่งซื้อ
orderpro จะแสดง รหัสสินค้า กับ จำนวนสินค้า ที่สมาชิกได้สั่งซื้อ
โดยอยากจะเขียน หน้าออกมาอีกต่างหาก โดยจะดึงข้อมูลจากฟิลด์ ในแต่ละตารางมา
ดังข้อมูลข้างล่างนี้
แต่ผมจะเพิ่มในส่วนของ แบ่งออกเป็น 2 หน้า ดังนี้
หน้าที่ 1.ข้อมูลใบสั่งซื้อสินค้า
ตาราง
--------------------------------------------------------------------------------------------
รหัสสมาชิก , ชื่อ-นามสกุลสมาชิก , เบอร์ติดต่อสมาชิก, วันที่สั่งซื้อสินค้า , ลบ
--------------------------------------------------------------------------------------------
สุดหน้า 1
@@@@@@@@@@@@@@@@@@@@@@@@@@
ที่จะให้ดูที่ฐาน
ส่วนที่จะดึงจากฐาน มีดังนี้
รหัสสมาชิก *จากmember* ย่อยก็ memid
ชื่อ-นามสกุลสมาชิก *จากmember* ย่อยก็ memfname , memlname
เบอร์ติดต่อสมาชิก *จากmember* ย่อยก็ memphone
ราคารวม(ตัวนี้ในฐานผมไม่มี ถ้าได้ก็เอา หรือไม่เป็นวันที่สั่งซื้อสินค้า *จากordercus* ย่อยก็ oddate)
ลบ
พอคลิกที่ รหัส หรือ ชื่อ-นามสกุล แล้วจะออกมาอีกหน้าดังนี้
หน้าที่ 2. ใบสั่งซื้อสินค้า
รหัส(สมาชิก)
ชื่อ-นามสกุล(สมาชิก)
ที่อยู่(สมาชิก)
อีเมล(สมาชิก)
เบอร์ติดต่อ(สมาชิก)
วันที่สั่งซื้อ
ชำระเงินโดย
ตาราง
---------------------------------------------------
รหัสสินค้า , ชื่อสินค้า , จำนวน , ราคา , รวม
---------------------------------------------------
สุดหน้า 2
@@@@@@@@@@@@@@@@@@@@@@@@
ที่จะให้ดูที่ฐาน
ส่วนที่จะดึงออกจากฐาน มีดังนี้
รหัส(สมาชิก) จาก member - ย่อยก็ memid
ชื่อ-นามสกุล(สมาชิก) จาก member - ย่อยก็ memfname , memlname
ที่อยู่(สมาชิก) จาก member - ย่อยก็ memaddress
อีเมล(สมาชิก) จาก member - ย่อยก็ mememail
เบอร์ติดต่อ(สมาชิก) จาก member - ย่อยก็ memphone
วันที่สั่งซื้อ จาก ordercus - ย่อยก็ oddate
ชำระเงินโดย จาก pay - ย่อยก็ payname
ส่วนของตาราง
รหัสสินค้า จากproduct ย่อยก็ productid
ชื่อสินค้า จากproduct ย่อยก็ productname
จำนวน จากorderpro ย่อยก็ odqty
ราคา จากproduct ย่อยก็ prosale
รวม prosale+odqty
ซึ่งผมไม่ทราบเกี่ยวกับ code เลย
ยังไงก็ขอบคุณนะครับ ที่ช่วยตอบ ถ้าขอเร็วๆก็จะเป็นพระคุณอย่างสูงมากเลยครับ จะส่งตัวprojectวันพุธ 18 ก.พ.นี้แล้ว
หรือไม่ก็ผมขอตัว code และฐานที่ใช้ทั้งหมดเลยก็ได้ครับ
ความหวังอย่างสูงจาก thaicreate
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-02-13 20:56:48 |
By :
Pe' |
View :
2813 |
Reply :
7 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โค้ดแบบนี้ไม่มีแจกฟรีครับ แนะนำว่าเลิกหวังว่าจะมีใครนำโค้ดมาให้ แล้วลงมือทำเองดีกว่าครับ
เพราะว่าถ้าอยากได้โปรแกรมที่สามารถใช้ได้จริง ก็ต้องลงมือทำเอง (ไม่มีใครมาทำให้ฟรีๆ หรอกนะ)
อย่างเก่งก็ 2 - 3 วันเสร็จอ่ะครับ (สำหรับผม 3 วันน่าจะทำเสร็จ) พูดตามตรง อย่างไม่เก่งก็เป็นเดือนหรือเป็นปีอ่ะ ถ้าทำเองไม่ไหวคงต้องจ้างเค้าล่ะนะ
แต่แนะนำให้ทำเอง (อาจได้ส่งอาจารย์ช้า) หลักๆ ก็คือโค้ดติดต่อฐานข้อมูล ส่วนแสดงผลทางหน้าจอ และโค้ดบันทึกลง ฐานข้อมูล
ศึกษาบทความนี้ดู
|
 |
 |
 |
 |
Date :
2009-02-14 01:28:08 |
By :
Zeve |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ง่ะ ทำ 4 ช.ม ก็เสร๊จ ครับ ถ้าจะทำจริงๆ ง่าย นิดเดียว ผมลองอ่านข้อมูลดูแล้ว
**ลองทำเองดูครับ ไม่ยาก อย่างที่คุณคิดหรอก
|
 |
 |
 |
 |
Date :
2009-02-14 19:52:16 |
By :
seed212 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ทำแปบเดียวเองหรอ
สนในรับทำมั้ยค่ะ
ของเราก็ทำโปร..คล้ายแบบนี้เลย
แต่เราก็ทำบ้างแล้วนิดหน่อย
ติดตรงระบบนิดเดียวเอง..ทำต่อมิได้อ่ะ
ขอเบอร์ติดต่อหน่อยได้ป่ะ
จะขอบพระคุณเป็นอย่างสูง
เราสนใจมากนะ... เครียดมากกกกกกกกกกกกก
หรือส่งเมลล์หาเราก็ได้
|
 |
 |
 |
 |
Date :
2009-02-15 20:21:45 |
By :
aunnae |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
งะขอโทษคุณ จขกท. ด้วย ผมพูดน่ากลัวไปหน่อย อิอิ
ขอแก้ละกันที่ผมบอกว่า 3 วันเสร็จและมือใหม่อาจเป็นเดือน-ปีในที่นี้ ในจินตนาการผมคือโปรแกรมที่ Perfect 100% แล้ว สามารถขายได้(ก็ในหัวผมมีแต่ของอย่างนั้นอ่ะ) โดยระบบจะต้องไม่มีรูรั่ว ไม่มีบักหรือข้อบกพร่องอ่ะครับ ถ้าส่งอาจารย์ก็ไม่ต้องเน้น security และ debug มากก็ได้ครับ 4 ชั่วโมงก็เสร็จแล้ว
ขอโทษด้วยจริงๆ อย่าเพิ่งท้อล่ะ อิอิ     
|
 |
 |
 |
 |
Date :
2009-02-15 23:44:16 |
By :
Zeve |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เด๋วผมเขียนโค้ดให้ นะ
Code
    
|
 |
 |
 |
 |
Date :
2009-02-16 23:39:57 |
By :
sanits |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
code แค่ 2 หน้ากับต้องมาซื้อ ระบบตระกร้าสินค้าเลยหรอ เหอะๆ
ผมไม่ทราบว่าจะเขียน code ยังไง ถ้าผมรู้จะมาถามที่นี่หรอ
|
 |
 |
 |
 |
Date :
2009-02-18 07:43:15 |
By :
Pe' |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|