Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > ตะกร้า แจกฟรีโค้ด ระบบตะกร้าสินค้า แจกฟรีโค้ด ระบบตระกร้าสินค้า ระบบสั่งซื้อ php , shopping cart



 

ตะกร้า แจกฟรีโค้ด ระบบตะกร้าสินค้า แจกฟรีโค้ด ระบบตระกร้าสินค้า ระบบสั่งซื้อ php , shopping cart

 



Topic : 021297

Guest




แจกฟรีโค้ด ระบบตระกร้าสินค้า




Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2 ส.ค. 2551 21:27:47 By : นัท View : 86459 Reply : 349
 

 

No. 1

Guest


คนไทยใจดีอย่างงี้ซิ เย้






Date : 5 ส.ค. 2551 06:42:57 By : อิอิ
 


 

No. 2

Guest


ขอบคุณค่าบบบ
Date : 28 ต.ค. 2551 10:00:03 By : v
 

 

No. 3

Guest


ขอบคุณนะคะ..ว่าแต่..แล้วทำไงต่ออ่ะ...หลังจากได้โค้ดแล้วน่ะค่ะ
Date : 2009-07-09 21:38:10 By : เอ
 


 

No. 4

Guest


ขอบคุณในความมีน้ำใจนะ
Date : 2009-09-13 14:47:36 By : aung
 


 

No. 5

Guest


ขอบคุณครับ
Date : 2010-02-07 08:25:38 By : aui
 


 

No. 6



โพสกระทู้ ( 13 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

ขอบคุณมาก ครับผม
Date : 2010-02-07 12:26:28 By : Element
 


 

No. 7



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


thx jaa
Date : 2010-02-07 17:07:38 By : parkzaa
 


 

No. 8

Guest


ขอโค๊ดระบบตะกร้าหน่อยค่ะ
Date : 2010-02-27 00:15:26 By : kookkai
 


 

No. 9



โพสกระทู้ ( 869 )
บทความ ( 2 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-02-27 00:34:09 By : onedan
 


 

No. 10



โพสกระทู้ ( 3,748 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์
Facebook

ขอบคุณด้วยครับใจดีมากๆ
Date : 2010-02-27 08:28:47 By : Dragons_first
 


 

No. 11



โพสกระทู้ ( 208 )
บทความ ( 0 )



สถานะออฟไลน์


ไม่รู้ว่าดีหรือป่าวนะ เพราะผมคลิกแล้วเข้าไม่ได้เลยครับ ลิงค์เสียป่าวครับ รบกวนช่วยแจกใหม่ได้ป่าวครับ ขอบคุณครับ
Date : 2010-02-28 21:57:29 By : sorin
 


 

No. 12



โพสกระทู้ ( 13 )
บทความ ( 0 )



สถานะออฟไลน์


อืมใช่ ลิ้งเสียเปล่าค่ะ
Date : 2010-03-01 15:35:14 By : 454463212
 


 

No. 13



โพสกระทู้ ( 208 )
บทความ ( 0 )



สถานะออฟไลน์


เจ้าของโปรแกรมใจดีไม่แจกอีกเลยเหรอครับ รบกวนแจกให้หน่อยนะครับ [email protected]
Date : 2010-03-01 18:46:17 By : sorin
 


 

No. 14

Guest


โหลดยังไงอ่าค่ะ

สอนหน่อยนะค่ะ แล้วต้องทำไงต่อ
Date : 2010-03-04 03:14:21 By : toei
 


 

No. 15

Guest


ลิ้งเสียคร่า

ดันๆ
Date : 2010-04-24 08:48:41 By : นู๋เฟิส
 


 

No. 16



โพสกระทู้ ( 768 )
บทความ ( 0 )



สถานะออฟไลน์


โหลดบ่ ได้เด้อพี่น้อง
Date : 2010-04-27 09:05:45 By : naskw
 


 

No. 17



โพสกระทู้ ( 4 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


พี่ครับใครมี รวบกวนส่ง [email protected] ด้วยครับ

ลิงค์เสียแล้วครับ
Date : 2010-04-27 15:38:57 By : heart100
 


 

No. 18

Guest


ขอด้วยครับ [email protected]
Date : 2010-04-28 00:13:53 By : C
 


 

No. 19



โพสกระทู้ ( 65 )
บทความ ( 0 )



สถานะออฟไลน์


ยังมีอยู่มั้ยครับ ขอหน่อยนะครับ [email protected]
Date : 2010-04-28 10:23:50 By : sakdalll
 


 

No. 20

Guest


ขอบคุงคับ
Date : 2010-07-31 01:31:38 By : chai
 


 

No. 21



โพสกระทู้ ( 7 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter Facebook Hi5

ขอบคุณคับ
Date : 2010-07-31 12:14:28 By : moshpit
 


 

No. 22



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-07-31 20:04:02 By : zxcadqe
 


 

No. 23



โพสกระทู้ ( 91 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากมายครับ.....
Date : 2010-07-31 20:07:49 By : Neptune29
 


 

No. 24



โพสกระทู้ ( 74 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter

แปลกๆๆ นะครับโหลดไม่ได้
Date : 2010-07-31 23:03:55 By : nb5
 


 

No. 25



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับ
Date : 2010-08-01 07:02:15 By : birdidsl
 


 

No. 26



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุนคร้าบบบบบบบบบบบบบบบบ

หาอยู่พอดีคับ


Date : 2010-08-01 07:13:03 By : nongmeepooh
 


 

No. 27



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


คนไททยใจดี มีถมไป

ขอบคุณครับ
Date : 2010-08-01 08:22:48 By : six2499
 


 

No. 28



โพสกระทู้ ( 22 )
บทความ ( 0 )



สถานะออฟไลน์


ใจดีจัง
Date : 2010-08-01 10:31:21 By : mysayna
 


 

No. 29



โพสกระทู้ ( 122 )
บทความ ( 0 )



สถานะออฟไลน์


link เสีย ส่งซ่อมด่วยด้วน
Date : 2010-08-01 10:39:24 By : aunjijoke
 


 

No. 30



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ
Date : 2010-08-01 11:12:51 By : UbiB
 


 

No. 31



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ยังโหลดได้อยู่นะคะ ขอบคุณมากค่า
Date : 2010-08-01 11:22:38 By : imma
 


 

No. 32



โพสกระทู้ ( 122 )
บทความ ( 0 )



สถานะออฟไลน์


ได้แล้ว ขอบคุณครับ
Date : 2010-08-01 11:37:48 By : aunjijoke
 


 

No. 33



โพสกระทู้ ( 82 )
บทความ ( 0 )



สถานะออฟไลน์
Hi5

ขอบคุณครับ
Date : 2010-08-01 12:01:30 By : panyaadd
 


 

No. 34



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณคร้าบ
Date : 2010-08-01 12:34:16 By : phankung
 


 

No. 35



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ
Date : 2010-08-01 12:53:51 By : น้ำหวานปั่น
 


 

No. 36



โพสกระทู้ ( 12 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook Hi5

ขอบคุณมากคร๊า
Date : 2010-08-01 14:03:51 By : pondpond
 


 

No. 37



โพสกระทู้ ( 139 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับพี่
Date : 2010-08-01 14:28:47 By : satonpanit
 


 

No. 38



โพสกระทู้ ( 63 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณครับ ขอเอาไปลองหน่อยนะ ครับ
Date : 2010-08-01 18:35:50 By : weenzezar
 


 

No. 39



โพสกระทู้ ( 119 )
บทความ ( 0 )



สถานะออฟไลน์


คุงงับ
Date : 2010-08-01 18:45:08 By : gun101gun
 


 

No. 40



โพสกระทู้ ( 14 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากเลยค่า ^o^
Date : 2010-08-02 09:45:52 By : Sorceress
 


 

No. 41



โพสกระทู้ ( 6 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-08-02 09:55:05 By : graysard
 


 

No. 42



โพสกระทู้ ( 21 )
บทความ ( 0 )



สถานะออฟไลน์


ว่าง ๆ จะไปฝึก แฮ่ะ แกะ ระบบ น่ะครับ อยากทำได้บ้างจร้า ขอบคุณคับ
Date : 2010-08-02 10:26:24 By : taone_1
 


 

No. 43



โพสกระทู้ ( 106 )
บทความ ( 0 )



สถานะออฟไลน์



Date : 2010-08-02 10:35:19 By : aorzabi
 


 

No. 44



โพสกระทู้ ( 5 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณคับ กำลังหาอยู่พอดี
Date : 2010-08-02 10:37:02 By : chaimim
 


 

No. 45



โพสกระทู้ ( 4 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับ
Date : 2010-08-02 10:38:34 By : supasit_vn
 


 

No. 46

Guest


ขอบคุณครับ
Date : 2010-08-02 15:31:17 By : C
 


 

No. 47



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

Thanks
Date : 2010-08-02 16:47:13 By : takachi80
 


 

No. 48



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ยอดเยี่ยมมากเลยครับ ใช้งานได้ดี ถ้ามีคำถามสอบถามได้ที่ไหนครับ?
Date : 2010-08-02 16:51:07 By : CenturyMien
 


 

No. 49



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์



ขอบคุณมากมายเลยครับ
Date : 2010-08-02 17:30:05 By : fhackman
 


 

No. 50



โพสกระทู้ ( 42 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากๆ
Date : 2010-08-02 17:36:17 By : sagon
 


 

No. 51



โพสกระทู้ ( 12 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
จะลองเอาไปแกะดูอิอิ
Date : 2010-08-02 17:42:49 By : zeaous
 


 

No. 52



โพสกระทู้ ( 27 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับ +1 ครับเดี๋ยวไงขอเอาไปพัฒนาต่อล่ะกันนะครับ
Date : 2010-08-02 17:54:34 By : thirawood
 


 

No. 53



โพสกระทู้ ( 6 )
บทความ ( 0 )



สถานะออฟไลน์


จะนำไปใช้ดู ขอบคุณ
Date : 2010-08-02 17:58:07 By : narongsak001
 


 

No. 54



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter Facebook Hi5

ขอบคุณคราบผม
Date : 2010-08-02 18:00:39 By : mygunza
 


 

No. 55



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Quote:
ยอดเยี่ยมมากเลยครับ ใช้งานได้ดี ถ้ามีคำถามสอบถามได้ที่ไหนครับ?


อันนี้เป็น Code ที่ผมเขียนเองครับ พอดีลิงค์เก่ามันเสีย ผมเลยเอาของที่ผมเขียน ๆ ไว้เก่า ๆ มาแจก เขียนสมัยนานมากกกกก


ประวัติการแก้ไข
2010-08-02 18:02:18
Date : 2010-08-02 18:01:17 By : webmaster
 


 

No. 56



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

มีปัญหาอะไรโพสทางบอร์ดเลยครับ เดียวจะมาตัดการให้ครับ
Date : 2010-08-02 18:01:47 By : webmaster
 


 

No. 57



โพสกระทู้ ( 1,751 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ ลองเอาไปเล่นบ้าง 5555555555 เพื่อใช้เทคนิคนี้ใน stock ได้ 555555555
Date : 2010-08-02 18:26:07 By : SOUL
 


 

No. 58



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ กำลังอยากจะได้อยู่เลยค่ะ
Date : 2010-08-02 19:33:19 By : justloveme
 


 

No. 59



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณครับ กำลังศึกษาอยู่พอดีเลยครับ
Date : 2010-08-02 19:37:13 By : kamphon
 


 

No. 60



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-08-02 19:39:05 By : icafezone
 


 

No. 61



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter

ขอบคุณครับๆ
Date : 2010-08-02 19:53:23 By : boyo0o001
 


 

No. 62



โพสกระทู้ ( 22 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-08-02 19:57:58 By : pyayam
 


 

No. 63

Guest


ขอบคุณมากๆ ครับ
Date : 2010-08-03 22:59:44 By : theaum2002
 


 

No. 64



โพสกระทู้ ( 5 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากค่ะ
Date : 2010-08-04 08:30:35 By : watcharahaja
 


 

No. 65



โพสกระทู้ ( 202 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ขอบคุณมากครับ
Date : 2010-08-04 10:51:11 By : JavaScrap
 


 

No. 66



โพสกระทู้ ( 5 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook Hi5 Blogger

ขอบคุณครับ
Date : 2010-08-04 14:38:15 By : deksurin
 


 

No. 67



โพสกระทู้ ( 72 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter

ยอดไปเลยครับ
Date : 2010-08-04 15:15:55 By : itzone
 


 

No. 68



โพสกระทู้ ( 28 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุงครับ
Date : 2010-08-04 15:40:41 By : sataff
 


 

No. 69



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


แจ่มไปเลย

ขอบคุณมากครับ
Date : 2010-08-04 23:39:21 By : Canabizz
 


 

No. 70



โพสกระทู้ ( 55 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-08-05 00:38:00 By : ang_go
 


 

No. 71



โพสกระทู้ ( 648 )
บทความ ( 0 )



สถานะออฟไลน์


กระทู้นี้ดังจริงๆ ต้องแอบมาโพสบ้างหล่ะ


ขอบคุณละกันครับ


ปล. แหม เอาของพี่วินมาแจกซะงั้น https://www.thaicreate.com/free-web-script.html
Date : 2010-08-05 00:42:30 By : 50121680
 


 

No. 72



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-08-05 03:58:23 By : Ratchanawee
 


 

No. 73



โพสกระทู้ ( 6 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter Facebook

โหลดได้อยู่จ้า ,,

ขอบคุณครับ ;)
Date : 2010-08-05 05:41:53 By : notz
 


 

No. 74



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากๆๆๆๆๆ
Date : 2010-08-05 10:31:57 By : usagisama
 


 

No. 75



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากๆๆ
Date : 2010-08-06 16:44:02 By : alannann
 


 

No. 76



โพสกระทู้ ( 45 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter Facebook

ขอบคุณมากเลยครับ
Date : 2010-08-06 17:14:37 By : demonking
 


 

No. 77



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์
Hi5

ขอบคุณครับ
Date : 2010-08-06 17:57:17 By : mos350
 


 

No. 78



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

แจ่มๆๆ
Date : 2010-08-06 18:46:14 By : aits
 


 

No. 79



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook



แจ่ม มาก ครับ
Date : 2010-08-06 18:46:50 By : aits
 


 

No. 80



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

มีโปรเจคใน Stock อีก 40-50 ตัว ที่เขียนไว้ สมัยเป็นโปรแกรมเมอร์กิกก๊อก เดียวเอามาแจกกันครับ
Date : 2010-08-06 22:18:09 By : webmaster
 


 

No. 81



โพสกระทู้ ( 8 )
บทความ ( 0 )



สถานะออฟไลน์


ใจดี จิงๆ


ขอบใจคับ
Date : 2010-08-06 22:38:07 By : text_292
 


 

No. 82



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


น้ำใจ ดีมากๆ
Date : 2010-08-08 16:19:33 By : herobird
 


 

No. 83



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากมายเลยครับ"""""""
Date : 2010-08-08 21:22:51 By : utaen191
 


 

No. 84

Guest


Thank You Kub
Date : 2010-08-08 21:32:01 By : First
 


 

No. 85



โพสกระทู้ ( 84 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-08-11 20:49:08 By : p_kokmas
 


 

No. 86



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter Facebook Hi5 Blogger

ขอบคุณมาก ๆ น๊ะครับสำหรับสิ่งดี ๆ มีประโยชน์
Date : 2010-08-12 00:18:49 By : opera
 


 

No. 87



โพสกระทู้ ( 56 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณ ด้วย คน ครับ........
Date : 2010-08-12 02:30:12 By : aofza704
 


 

No. 88



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook Hi5

ขอบคุนนะค่ะ
Date : 2010-08-13 12:19:22 By : noonam
 


 

No. 89

Guest


โหลดไงคับไม่เห็นมีเลย
Date : 2010-08-15 13:42:27 By : notto2006
 


 

No. 90

Guest


Quote:
โหลดไงคับไม่เห็นมีเลย


ตาบอดหรือไงครับท่าน
Date : 2010-08-15 14:37:44 By : อิอิ
 


 

No. 91



โพสกระทู้ ( 7 )
บทความ ( 0 )



สถานะออฟไลน์


thankssss
Date : 2010-08-15 14:40:26 By : junkman
 


 

No. 92



โพสกระทู้ ( 56 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณครับพี่น้อง
Date : 2010-08-16 18:27:35 By : intelman
 


 

No. 93



โพสกระทู้ ( 9 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ใจดีครับ
Date : 2010-08-17 03:27:37 By : mixer98
 


 

No. 94



โพสกระทู้ ( 26 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ
Date : 2010-08-17 09:10:07 By : gloyha
 


 

No. 95

Guest


สวัสดีครับ พอดี ผมได้โหลด ไปลองใช้งานดู

ติดปัญหาคือ

- ไม่สามารถเปลี่ยน รูปภาพ และ อับรูปภาพ ขึ้นใหม่ได้
ไม่ทราบว่าต้องแก้ไขยังไงครับ
Date : 2010-08-19 10:12:21 By : หัดเขียน
 


 

No. 96

Guest


เจอปัญหาอะ ทำไมถึงเป็นภาษา ???????
Date : 2010-08-19 10:56:31 By : หัดเขียน
 


 

No. 97

Guest


โหลดได้ครับผม ลิ้งก็ดีครับ ผมโหลดได้แล้วครับ
ขอบคุณมากครับผม สำหรับผู้ปล่อย
Date : 2010-09-01 08:53:27 By : กอล์ฟ
 


 

No. 98



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

สำหรับภาษาไทยแก้ไขตามนี้ครับ

Go to : แก้ปัญหาภาษาไทย php กับ MySQL (TIS-620 กับ UTF-8)
Date : 2010-09-01 09:08:21 By : webmaster
 


 

No. 99



โพสกระทู้ ( 16 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ


ประวัติการแก้ไข
2010-09-05 12:12:29
Date : 2010-09-05 12:11:12 By : Ombu
 


 

No. 100

Guest


ขอบคุณค่ะ ช่วยชีวิตไว้แท้ๆเลยค่ะ ^^
Date : 2010-09-17 16:41:18 By : kukkik
 


 

No. 101



โพสกระทู้ ( 11,835 )
บทความ ( 10 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์


Quote:
สมัยเป็นโปรแกรมเมอร์กิกก๊อก


พี่ว่าผมชิมิ
Date : 2010-09-17 16:51:27 By : PlaKriM
 


 

No. 102



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ไม่อยากดู code ตัวเองเลย แต่สำหรับมือใหม่ถือว่ามีประโยชน์มาก ๆ
Date : 2010-09-17 17:14:44 By : webmaster
 


 

No. 103



โพสกระทู้ ( 36 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2010-09-17 20:52:34 By : midobun
 


 

No. 104



โพสกระทู้ ( 208 )
บทความ ( 0 )



สถานะออฟไลน์


ทำไมมันคำนวนสินค้าไม่ได้เหรอครับ เมือเราเลือสินค้าเพิ่มว่าจะเอาสองหรือสามอันปรากฏว่าไฟล์cart.php​​​ที่เป็นไฟล์คำนวณราคานั้นไม่มีเลย รบกวนช่วยแก้หน่อยนะครับ
Date : 2010-09-18 14:14:55 By : sorin
 


 

No. 105



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณนะคะ
Date : 2010-09-27 16:17:24 By : winevin
 


 

No. 106



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


Thks
Date : 2010-09-30 17:54:30 By : starcafe
 


 

No. 107



โพสกระทู้ ( 1,127 )
บทความ ( 2 )



สถานะออฟไลน์


ขอเก็บไปศึกษาด้วยคนครับ

ขอบคุณครับ
Date : 2010-09-30 23:04:34 By : iieszz
 


 

No. 108

Guest


เหมือนเรามีนะ แต่แกะโค้ดยากมากเลย กำลังจะดัดแปลง อิอิ
Date : 2010-10-01 02:25:48 By : GoLfEe
 


 

No. 109

Guest


ขอบคุณมากครับ
Date : 2010-10-03 13:46:25 By : แขก
 


 

No. 110



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุนคับ
Date : 2010-10-03 23:25:10 By : oce4nview
 


 

No. 111



โพสกระทู้ ( 12 )
บทความ ( 0 )



สถานะออฟไลน์


คือผมอยากรุ้ว่าทำไมมันไม่ลงตะกร้าอะคับ

//============ ถ้ามีการเลือกรายการสินค้าให้เก็บลง Session
if(trim($_GET["ProductID"]) != "")
{
$_SESSION["strP"]=$_SESSION["strP"]+1;<<อันนี้คือสร้างseesion มาไหม่ใช่ป่าวอะคับ ช่วยอธิบายไห้ผมทีคับ
$_SESSION["strProductID"][$_SESSION[strP]]=$_GET["ProductID"];
$_SESSION["strQuanlity"][$_SESSION[strP]]=1;
session_write_close();
header("location:$_SERVER[PHP_SELF]");
}
Date : 2010-10-08 18:46:05 By : napatpom
 


 

No. 112

Guest


ขอบคุณคับ
Date : 2010-10-08 23:13:47 By : new
 


 

No. 113



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับ
Date : 2010-10-11 01:20:38 By : yobandit
 


 

No. 114



โพสกระทู้ ( 118 )
บทความ ( 3 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ขอบคุงคัปป๋ม
Date : 2010-10-15 07:11:21 By : noomthapla
 


 

No. 115



โพสกระทู้ ( 61 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ
Date : 2010-10-15 16:10:23 By : dekcis
 


 

No. 116

Guest


ขอบคุณเช่นกันครับ
Date : 2010-10-15 16:43:08 By : kapunkung
 


 

No. 117



โพสกระทู้ ( 6 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณด้วยคนคับ
Date : 2010-10-15 23:31:39 By : hanami99
 


 

No. 118

Guest


download เป็น zip file แม่นก่อเจ้า แล้วจะต้องยะหยังต่อ..
ถ้า html จะใช้ด้วยกันกับ html, java script, php, css บ่าเข้าใจซักอย่าง
ขอคำแนะนำผู้รู้ตวยเน้อเจ้า
ขอบคุณจั๊ดนัดเจ้า
Date : 2010-10-18 05:18:21 By : iphoneshop7
 


 

No. 119



โพสกระทู้ ( 12 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ
Date : 2010-10-31 15:07:33 By : neosky
 


 

No. 120

Guest


ขอบคุณครับ
Date : 2010-10-31 23:03:24 By : =--- =
 


 

No. 121



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

กระทู้นี้ขึ้นทุกอาทิตย์จริง ๆ สงสัยจะใช้ดี
Date : 2010-11-01 06:17:52 By : webmaster
 


 

No. 122



โพสกระทู้ ( 313 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


อย่างว่าละครับพี่วิน(ของเค้าดี) สงสัยพี่วินต้องปักหมุดแล้วละมั้ง
Date : 2010-11-01 10:16:58 By : namebom
 


 

No. 123



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณคะ
Date : 2010-11-05 14:49:37 By : ooboob
 


 

No. 124



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


Code (PHP)
<?
ob_start();
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล 
session_start();
require("connect/connect.php");
require("connect/function.php");
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>::: SERIES SHOP.COM :::</title>
<link href="css/styles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body topmargin="0">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr> 
    <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td>
            <?php require_once('head.php'); ?>

<?

//============ Check ว่ามีซ้ำแล้วหรือยัง
if($_GET["ProductID"] != "")
{
	for($i=0;$i<=count($_SESSION["strProductID"]);$i++)
	{
			if($_SESSION["strProductID"][$i] == $_GET["ProductID"])
			{
			header("location:$_SERVER[PHP_SELF]");
			exit();
			}
	}
}

//============ ถ้ามีการเลือกรายการสินค้าให้เก็บลง Session
if(trim($_GET["ProductID"]) != "")
{
	$_SESSION["strP"]=$_SESSION["strP"]+1;
	$_SESSION["strProductID"][$_SESSION[strP]]=$_GET["ProductID"];
	$_SESSION["strQuanlity"][$_SESSION[strP]]=1;
	session_write_close();
	header("location:$_SERVER[PHP_SELF]");
}	

//============ กรณีลบรายการสั่งซื้อ
if(trim($_GET["action"]) == "Del")
{
	$_SESSION["strProductID"][$_GET[P]]="";
	$_SESSION["strQuanlity"][$_GET[P]]="";
	session_write_close();
	header("location:$_SERVER[PHP_SELF]");
}	

//============ กรณีการแก้ไขรายการสั่งซื้อ
if(trim($_POST["action"]) == "Update")
{
for($i=0;$i<count($_POST["txtQua"]);$i++)
{	
	$strP=$_POST[txtP][$i];
	$strQ=$_POST["txtQua"][$i];
	if($strQ <= 0)
	{
	$strQ=1;
	}

	$_SESSION["strQuanlity"][$strP]=$strQ;

	$result=select("product","where 1=1 and ProductID='".$_SESSION["strProductID"][$strP]."'");
	if($result["Stock"] < $strQ)
	{
	$_SESSION["strQuanlity"][$strP]=$result["Stock"];
									echo"<script language='JavaScript'>";
									echo"alert('รหัสสินค้า [ $result[ProductCode] ] มีจำนวน Stock ไม่เพียงพอ');";
									echo"</script>";	
	}

	
}	
	session_write_close();
	//============ กระโดด Refresh ใหม่อีกรอบ
	header("location:$_SERVER[PHP_SELF]");
}	
?>
          </td>
        </tr>
        <tr>
          <td><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#f2f2f6" bgcolor="#FFFFFF">
              <tr> 
                <td width="23%" valign="top"> <?php require_once('menuleft.php'); ?> <br> </td>
                <td width="54%" valign="top"> 
                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="417" height="310" align="center" valign="top">
                       <form action="" method="post" name="frmCart" id="frmCart">
                          <table width="415" border="0">
                            <tr> 
                              <td><table width="418" height="22" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
                                  <tr> 
                                    <td width="8">&nbsp;</td>
                                    <td width="389"   bgcolor="#F3A6C6""><div align="center"><strong>รายการสั่งซื้อ 
                                        <input name="action" type="hidden" id="action" value="Update">
                                        </strong></div></td>
                                    <td width="9">&nbsp; </td>
                                  </tr>
                                </table>
                                <strong> </strong></td>
                            </tr>
                            <tr> 
                              <td>&nbsp;</td>
                            </tr>
                            <tr> 
                              <td align="center"><table width="98%" height="21" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#666666">
                                  <tr bgcolor="#FFFFFF"> 
                                    <td><div align="center">ลำดับ</div></td>
                                    <td>ชื่อสินค้า</td>
                                    <td><div align="center">ราคา</div></td>
                                    <td>ค่าจัดส่ง</td>
                                    <td><div align="center">จำนวน</div></td>
                                    <td><div align="center">รวม</div></td>
                                  </tr>
                                  <?

//============ ทำการแสงรายการที่ได้เลือกว่ามีกี่รายการ

$strNum=0;
$strTotal=0;
for($i=0;$i<=count($_SESSION["strProductID"]);$i++)
{
//============ เลือกว่ารายการสินค้าใดบ้าง
$result=select("product","where 1=1 and ProductID='".$_SESSION["strProductID"]["$i"]."' ");
if($result)
{
$strNum++;
?>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td width="9%"> <div align="center"> 
                                        <?=$strNum;?>
                                        <a href="javascript:if(confirm('ลบรายการสินค้า')==true){window.location='<?=$_SERVER['PHP_SELF'];?>?action=Del&P=<?=$i;?>';}"><img src="image/deleteC.gif" width="12" height="11" border="0"></a></div></td>
                                    <td width="48%"> 
                                      <?=$result["ProductName"];?>
                                    </td>
                                    <td width="14%"> <div align="right"> 
                                        <?="".number_format($result["Price"], 2,'.',',');?>
                                      </div></td>
                                    <td width="13%"> 
                                      <div align="right">
                                        <?="".number_format($result["PriceSend"], 2,'.',',');?>
                                      </div></td>
                                    <td width="13%"><div align="center"> 
                                        <input name="txtP[]" type="hidden" id="txtP[]" value="<?=$i;?>">
                                        <input name="txtQua[]" type="text" id="txtQua<?=$strNum;?>" style="width:30px;text-align:right" value="<?=$_SESSION["strQuanlity"]["$i"];?>" maxlength="3" onChange="checknum(this.value,'txtQua<?=$strNum;?>');">
                                      </div></td>
                                    <td width="16%"> <div align="right"> 
                                        <?="".number_format(($result["Price"]+$result["PriceSend"])*$_SESSION["strQuanlity"]["$i"], 2,'.',',');?>
                                      </div></td>
                                  </tr>
                                  <?
								  $strTotal=$strTotal+(($result["Price"]+$result["PriceSend"])*$_SESSION["strQuanlity"]["$i"]);
}
}
?>
                                </table>
                                <br> <table width="98%" height="21" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#666666">
                                  <tr bgcolor="#FFFFFF"> 
                                    <td><div align="right">จำนวน (รายการ)</div></td>
                                    <td> <div align="right"> 
                                        <?=$strNum;?>
                                      </div></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF"> 
                                    <td> <div align="right">ราคารวม (บาท)</div></td>
                                    <td width="16%"> <div align="right"> 
                                        <?="".number_format($strTotal, 2,'.',',');?>
                                      </div></td>
                                  </tr>
								  <tr bgcolor="#FFFFFF"> 
                                            <td> <div align="right">ซื้อเกิน<span class="style1"> 10 ชิ้นลด 5%</span> &nbsp;ซื้อเกิน <span class="style1">20 ชิ้นลด 10%</span> (รวม)</div></td>
<? 
$strq = count($_SESSION["strQuanlity"]["$i"]);
print_r($strq);
if($strq<10)
  {
     $pay=$strTotal;
  }
if($strq>9)
  {
     $pay=$strTotal-($strTotal*5)/100;
  }
else
  {
     $pay=$strTotal-($strTotal*10)/100;
  }
  ?>
                                            <td width="16%"> <div align="right"> 
                                                <?="".number_format($pay, 2,'.',',');?>
                                                <input name="txtTotal" type="hidden" value="<?=$pay;?>">

                                              </div></td>
                                          </tr>
                                </table></td>
                            </tr>
                            <tr> 
                              <td width="378"><div align="center">
                              <hr align="center" width="98%" color="#f2f2f6">
                                          <br>
                                  <?
							if($strNum==0)
							{
							echo "<br><center><strong><font color=red>ไม่มีรายการสั่งซื้อ</font></strong></center><br><br>";
							}
							?>
                                  <input name="BtnContinute" type="button" class="button" id="BtnContinute2" value="ซื้อสินค้าต่อ" onClick="window.location='index.php';">
                                  &nbsp; 
                                  <?
								  if($strNum>0)
								  {?>
                                  <input name="BtnCalu" type="submit" class="button" id="BtnCalu" value="คำนวณเงินใหม่">
                                  &nbsp; 
                                  <input name="BtnPayment" type="button" class="button" id="BtnPayment" value="ชำระเงิน" onClick="window.location='pay.php';">
                                  <?}?>
                                  <br>
                                </p>
                              </div></td>
                            </tr>
                          </table>
                          <p class="style59">&nbsp;</p>
                        </form>
                        
                        <p class="style59">&nbsp;
						<script language="JavaScript">
						function checknum(value,fields)
						{
						if(!check_number(value))
						{
						eval("document.all."+fields+".value='1';");
						alert('กรอกจำนวนไม่ถูกต้อง');
						}
						}
						
						function check_number(ch){
							var len, digit;
							if(ch == " "){ 
								return false;
									 len=0;
								}else{
									 len = ch.length;
							}
							for(var i=0 ; i<len ; i++)
							{
								digit = ch.charat(i)
								if(digit >="0" && digit <="9"){
									;	
								}else{
									return false;					
								}		
							}		
							return true;
						}						
						</script></p>
                        <p class="style59">&nbsp;</p>
                        <p class="style59">&nbsp;</p></td>
                    </tr>
                  </table></td>
                <td width="23%" valign="top"> <?php require_once('menuright.php'); ?> </td>
              </tr>
              <tr> 
                <td colspan="3" valign="top">
                  <?php require_once('down.php'); ?>
                </td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>





คือว่าผมได้โหลดโปรแกรมนี้ไป แต่เอาไปดัดแปลงบ้างแต่มีที่ที่ผมทำไม่ได้อ่าครับส่วนของการจำนวนสินค้าทั้งหมดที่สั่งซื้ออ่าครับ เพราะผมต้องการที่จะเอาไปเป็นส่วนลดอ่าครับ คือว่าต้องการให้เมื่อซื้อสินค้าครบ10ชิ้นลด5% ซื้อครบ 20ชิ้นลด 10% อ่าครับ รบกวนช่วยแนะนำหน่อยได้ไหมครับ


ประวัติการแก้ไข
2010-11-06 15:54:07
Date : 2010-11-06 15:51:04 By : 494244091
 


 

No. 125

Guest


ขอบคุณครับ
Date : 2010-11-14 22:14:27 By : เอ๋
 


 

No. 126



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

คนไทยใจดีอยู่แล้วครับ
Date : 2010-11-14 22:31:00 By : webmaster
 


 

No. 127



โพสกระทู้ ( 14 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


คนไทยใจดี ขอบคุณน่ะ
Date : 2010-11-15 13:11:25 By : jayit13
 


 

No. 128



โพสกระทู้ ( 27 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะที่ใจดีแจกให้
Date : 2010-11-15 22:26:28 By : aumaum
 


 

No. 129



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับจะลองเอาไป ใช้ดูครับ
Date : 2010-11-17 00:24:01 By : alwayskinds
 


 

No. 130



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ เดียวจะลองเอามาทำต่อดู
Date : 2010-11-17 00:26:01 By : alwayskinds
 


 

No. 131



โพสกระทู้ ( 16 )
บทความ ( 0 )



สถานะออฟไลน์


ลองใช้แล้วค่ะ ดีมากเลยติดนิดเดียว อัพโหลดรูปภาพไม่ได้ค่ะ รบกวนคุณพี่วินช่วยดูได้มั้ยคะ
มันไม่บันทึกชื่อไฟล์รูปในตาราง และไม่นำเข้าไฟล์รูปในโฟเดอเลยค่ะ
โค้ดนี้อยู่ในไฟล์ editproduct.php ในโฟเดอ Admin ต้องปรับแก้ยังไงคะ

//=========== บันทึกข้อมูลสินค้า
$sql_up = "update product set ProductCode='$_POST[txtProductCode]', ProductName='$_POST[txtProductName]',Description='$_POST[txtDescription]', Price='$_POST[txtPrice]',PriceNormal='$_POST[txtPriceNormal]', PriceSend='$_POST[txtPriceSend]',Stock='$_POST[txtStock]', Promotion='$_POST[rdoPromotion]',New='$_POST[rdoNew]' where ProductID='$_GET[ProductID]'";
$dbquery_up = mysql_query($sql_up);
//echo $sql_up;
// exit();
//=========== แก้ไขไฟล์เล็ก
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);
}


echo"<script language='JavaScript'>";
echo"alert('แก้ไขข้อมูลเรียบร้อยแล้ว');";
echo"window.location='editproduct.php?ProductID=$_GET[ProductID]';";
echo"</script>";
}


ประวัติการแก้ไข
2010-11-17 11:53:11
Date : 2010-11-17 11:19:38 By : inam
 


 

No. 132

Guest


ขอบคุณมากคับ
Date : 2010-11-17 12:03:55 By : num
 


 

No. 133



โพสกระทู้ ( 0 )
บทความ ( 0 )



สถานะออฟไลน์


ขอรับไปลองนะครับ ...
Date : 2010-11-17 12:26:27 By : ohmjoy
 


 

No. 134



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ ขอเอาไปดูก่อน
Date : 2010-11-17 13:00:10 By : ae-ae
 


 

No. 135



โพสกระทู้ ( 191 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณหลาย คนไทยใจดี
Date : 2010-11-17 15:26:19 By : noizeless
 


 

No. 136



โพสกระทู้ ( 16 )
บทความ ( 0 )



สถานะออฟไลน์


กด Next ไม่ไปจ้าพี่วิน
Date : 2010-11-25 23:05:34 By : inam
 


 

No. 137



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณคร๊าบบบบบ
Date : 2010-11-26 10:15:14 By : ohm_cs
 


 

No. 138



โพสกระทู้ ( 61 )
บทความ ( 0 )



สถานะออฟไลน์


Thaicreate มีแต่สิ่งดีๆ Thaicreate จงเจริญ ขอบคุณคราป...................
Date : 2010-11-26 15:05:55 By : pipop1150
 


 

No. 139



โพสกระทู้ ( 61 )
บทความ ( 0 )



สถานะออฟไลน์


ตอนนี้ลงฐานข้อมูลอะไรเรียบร้อยแล้ว ***ตรงข้อความที่ดึงมาจากฐานข้อมูลมันเป็นภาษาต่างดาว*** ทำไงดีคับ
Date : 2010-11-26 15:12:28 By : pipop1150
 


 

No. 140



โพสกระทู้ ( 24 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับทดลองใช้ได้ผลยังไงเดี๋ยวมาบอกนะครับ
Date : 2010-11-28 13:26:38 By : น้องใหม่
 


 

No. 141



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

แก้ภาษาไทยตามนี้ครับ

Go to : แก้ปัญหาภาษาไทย php กับ MySQL (TIS-620 กับ UTF-8)
Date : 2010-11-28 13:53:07 By : webmaster
 


 

No. 142



โพสกระทู้ ( 50 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ขอบคุณครับ
Date : 2010-11-28 17:26:10 By : clubp_mark
 


 

No. 143



โพสกระทู้ ( 135 )
บทความ ( 0 )



สถานะออฟไลน์
Blogger

ผมแกะไม่ได้ครบ สาเหตุมาจากฐานข้อมูลของผมไม่ตรงกับฐานข้อมูลของพี่อ่ะครับ ฐานข้อมูล product ของผมเปนแบบนี้ครับ
ฐานข้อมูลproduct
รบกวนช่วยผมหน่อยนะครับ
Date : 2010-11-28 21:13:44 By : เดกอ่อนหัด
 


 

No. 144



โพสกระทู้ ( 142 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณสำหรับผู้ใจบุญคับ ขอให้เจริญ ๆ ๆ
Date : 2010-11-29 01:13:21 By : lengza
 


 

No. 145



โพสกระทู้ ( 16 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากๆค่ะ ใช้แล้วดีมากเลย ที่เคยแจ้งว่า กดปุ่มnextไม่ได้น่ะ ได้แล้วนะคะ
Date : 2010-12-13 02:06:00 By : inam
 


 

No. 146



โพสกระทู้ ( 49 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณครับ
Date : 2010-12-14 11:42:34 By : dragonjza
 


 

No. 147



โพสกระทู้ ( 17 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบพระคุณมากครับ
Date : 2010-12-14 14:22:50 By : dbnoon
 


 

No. 148



โพสกระทู้ ( 99 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter Facebook

ขอบคุณมากมาย ครับ กำลังหาพอดีเลย
Date : 2010-12-14 15:00:34 By : shinjangs
 


 

No. 149



โพสกระทู้ ( 191 )
บทความ ( 0 )



สถานะออฟไลน์



Date : 2010-12-16 11:34:14 By : noizeless
 


 

No. 150



โพสกระทู้ ( 6 )
บทความ ( 0 )



สถานะออฟไลน์


thank thank
Date : 2010-12-16 11:56:03 By : pkyean
 


 

No. 151



โพสกระทู้ ( 17 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณนะค่ะ
Date : 2010-12-23 19:39:09 By : yuii
 


 

No. 152

Guest


ขอบ คุนนน ค้าบบบบบ ใจดี จัง เลย
Date : 2011-01-09 10:17:30 By : หนึ่ง
 


 

No. 153



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ถ้านำไปแล้วเอาไปศึกษา หรือถ้าดัดแปลงแล้ว นำมาให้เพื่อน ๆ สมาชิกคนอื่น ๆ ได้โหลดด้วยจะดีมาก ๆ เลยครับ
Date : 2011-01-09 14:00:29 By : webmaster
 


 

No. 154

Guest


คือผมจะทำค้นหาข้อมูล ของสมาชิก อะครับจะต้องทำยังงัยครับ ที่ฟอร์ม member ครับช่วยหน่อยนะครับ

เช่น ค้นหาชื่อลูกค้าอะครับช่วยหน่อยนะครับ แล้วแสดงโชว์ข้อมูลนั้นขึ้นมาครับ
ตัวอย่างแบบนี้ครับ
Date : 2011-01-09 14:22:18 By : วิน
 


 

No. 155



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Go to : PHP MySQL Search Record

ตามนี้ครับ
Date : 2011-01-09 17:25:00 By : webmaster
 


 

No. 156



โพสกระทู้ ( 191 )
บทความ ( 0 )



สถานะออฟไลน์


สุดยอดคราฟ
Date : 2011-01-12 16:42:35 By : noizeless
 


 

No. 157



โพสกระทู้ ( 913 )
บทความ ( 2 )



สถานะออฟไลน์
Facebook

www.bestcreambyck.com เว็บนี้ผมดูมาจากที่ดาวน์โหลดไปคับ ขอบคุณที่ให้ศึกษาการทำงาน ผมดูตัวอย่างจากที่โหลดไปคับขอบคุณมาก แต่แจกไม่ได้คับเพราะผมเขียนไปขายเค้าคับ แต่ถ้าใครอยากอยู่อะไรผมแนะให้หมดเลยคับ
Date : 2011-01-12 17:50:06 By : teez1232002
 


 

No. 158



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

เก่งครับ รู้สึกภูมิใจนิด ๆ ที่มีคนเอาไปพัฒนาต่อ และยังมีประโยชน์อยู่
Date : 2011-01-12 17:53:02 By : webmaster
 


 

No. 159

Guest


หนูหญิง

ไม่มีรัยให้นอกจากขอบคุณค่ะ

ขอบคุณมากๆๆ
Date : 2011-01-13 14:28:25 By : หนูหญิง
 


 

No. 160

Guest


ขอบคุณมากๆ ครับ ช่วยในการทำโปรเจ็คได้เยอะ

ขอให้รวยๆๆๆๆ นะครับ
Date : 2011-01-16 15:32:30 By : pop
 


 

No. 161



โพสกระทู้ ( 44 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

ขอบคุณครับจะได้หัดเขียน PHP ก็คราวนี้แหล่ะ
Date : 2011-01-24 11:19:13 By : iheerman
 


 

No. 162

Guest


ขอบคุณมาจิงๆ ค่ะ .. ช่วยได้เยอะ
Date : 2011-01-26 15:37:33 By : นัตโตะ
 


 

No. 163

Guest


ขอบคุณมากครับผม ใจดีจังๆ
Date : 2011-01-26 17:55:51 By : คนรอคอยคนใจดี
 


 

No. 164

Guest


ขอบคุณครับบ
Date : 2011-01-27 10:52:34 By : BossBk
 


 

No. 165



โพสกระทู้ ( 59 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับท่าน ที่แบ่งปันสิ่งดีๆ
Date : 2011-01-27 15:32:24 By : hwungnee
 


 

No. 166

Guest



เป็นเหมือนกันเลย ครับ แก้ไข ยังไง ช่วยหน่อยครับ


Quote:
ลองใช้แล้วค่ะ ดีมากเลยติดนิดเดียว อัพโหลดรูปภาพไม่ได้ค่ะ รบกวนคุณพี่วินช่วยดูได้มั้ยคะ
มันไม่บันทึกชื่อไฟล์รูปในตาราง และไม่นำเข้าไฟล์รูปในโฟเดอเลยค่ะ
โค้ดนี้อยู่ในไฟล์ editproduct.php ในโฟเดอ Admin ต้องปรับแก้ยังไงคะ

//=========== บันทึกข้อมูลสินค้า
$sql_up = "update product set ProductCode='$_POST[txtProductCode]',ProductName='$_POST[txtProductName]', Description='$_POST[txtDescription]',Price='$_POST[txtPrice]' ,PriceNormal='$_POST[txtPriceNormal]',PriceSend='$_POST[txtPriceSend]', Stock='$_POST[txtStock]',Promotion='$_POST[rdoPromotion]', New='$_POST[rdoNew]' where ProductID='$_GET[ProductID]'";
$dbquery_up = mysql_query($sql_up);
//echo $sql_up;
// exit();
//=========== แก้ไขไฟล์เล็ก
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);
}


echo"<script language='JavaScript'>";
echo"alert('แก้ไขข้อมูลเรียบร้อยแล้ว');";
echo"window.location='editproduct.php?ProductID=$_GET[ProductID]';";
echo"</script>";
}

Date : 2011-01-30 20:30:10 By : nop
 


 

No. 167



โพสกระทู้ ( 355 )
บทความ ( 0 )



สถานะออฟไลน์


2551 ใครไปขุดมาเนี่ย
Date : 2011-01-30 23:11:27 By : zankumuro
 


 

No. 168

Guest


ขอบคุณอย่างสุดซึ้งค่ะ
Date : 2011-01-31 11:08:34 By : จิ๊บจัง
 


 

No. 169



โพสกระทู้ ( 27 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากมากเลยค๊ะ มีประโยชน์ที่สุดเลยค๊ะ....*-*
Date : 2011-01-31 13:55:09 By : AewTre
 


 

No. 170

Guest


ขอบคุณค่ะ
Date : 2011-01-31 16:29:05 By : nu
 


 

No. 171



โพสกระทู้ ( 106 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบใจมากมาย ขอบใจสุดๆ
Date : 2011-01-31 17:01:57 By : yutthanagorn
 


 

No. 172



โพสกระทู้ ( 27 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค๊ะ
Date : 2011-02-01 15:22:31 By : AewTre
 


 

No. 173

Guest


ขอบคุณครับ
Date : 2011-02-13 20:24:08 By : aeejung
 


 

No. 174

Guest


thank ka
Date : 2011-02-16 17:14:57 By : meena
 


 

No. 175



โพสกระทู้ ( 24 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากค่ะ...เป็นประโยชน์มากๆๆๆๆๆๆค่ะ
Date : 2011-02-16 21:24:29 By : pimjai
 


 

No. 176

Guest


ขอบคุณมากครับๆๆๆๆๆๆๆๆๆๆมากๆๆๆๆๆๆๆๆ
Date : 2011-02-19 01:48:53 By : aeejung
 


 

No. 177



โพสกระทู้ ( 37 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-02-19 02:55:41 By : dearbuu
 


 

No. 178



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณสำหรับโค้ดครับ
Date : 2011-02-19 23:20:20 By : airichan
 


 

No. 179

Guest


คือว่าโหลดไฟล์แล้ว คะ มันเปิดไม่ได้มันให้ใส่รหสั
Date : 2011-02-20 00:48:50 By : pim
 


 

No. 180



โพสกระทู้ ( 12 )
บทความ ( 0 )



สถานะออฟไลน์
Blogger

ขอบคุณมากๆๆๆ
Date : 2011-02-20 10:18:34 By : Tonchi
 


 

No. 181



โพสกระทู้ ( 253 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-02-21 14:27:23 By : zimmpooh
 


 

No. 182



โพสกระทู้ ( 4 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ ขออนุญาตินำไปให้นักศึกษาเป็นตัวอย่างนะครับ
Date : 2011-02-22 11:42:12 By : seasky
 


 

No. 183

Guest


โหลดแล้วจะเอามาใส่ใน deamweaver ต้องทำไงค่ะ
Date : 2011-02-23 14:21:40 By : ้เห็บ
 


 

No. 184



โพสกระทู้ ( 56 )
บทความ ( 0 )



สถานะออฟไลน์


thank you ja
Date : 2011-02-26 14:47:04 By : NAMDANGSODAZA
 


 

No. 185



โพสกระทู้ ( 5 )
บทความ ( 0 )



สถานะออฟไลน์


ดีมากเลยครับ แต่กระดานข่าวยังใช้ไม่ได้ครับ แก้อย่างไรครับ
Date : 2011-02-27 22:39:59 By : pirwun
 


 

No. 186



โพสกระทู้ ( 318 )
บทความ ( 2 )



สถานะออฟไลน์
Facebook

ยอดมากๆตั้งแต่ปี 51 ยังมีคนหามาได้ ไฟล์นี้คงทนดีจริง
Date : 2011-02-28 13:32:39 By : chineji
 


 

No. 187

Guest


thx krub
Date : 2011-03-06 16:54:20 By : Chin
 


 

No. 188

Guest


โหลดมาแล้วกำลังปรับใช้ แต่อยากให้มีส่งรายละเอียดออเดอร์เข้าอีเมล์ด้วยครับ ตอนนี้ทำโค้ดส่งอีเมล์ในหน้า confirm.php แล้ว แต่ทำเป็นแค่ส่ง OrderID,ProductID,จำนวนสินค้า และข้อความธรรมดา

ถ้าจะทำให้ส่งข้อมูลทุกอย่างเหมือนในหน้า ordercomplete.php และเพิ่มข้อมูลสมาชิกที่สั่งซื้อ memberID,ชื่อ,เบอร์โทร เข้าอีเมล์ต้องทำยังไงครับ

ทำได้แค่นี้อ่ะ

//============ ส่งอีเมล์
$email = "Cartsystemtest";
$to = "[email protected]";
$bcc = "[email protected]";
$subject = "cartsystemorder";

$message = "Order: $strOrderID\n
productID2: $Proid\n
Quantity: $Quanlity\n\n";

$headers = "Content-Type: text/plain; charset=utf-8\r\n" .
"From:$email\r\n" .
"Reply-To:$to\r\n" .
"BCc:$bcc\r\n" .
"Return-Path:$email\r\n";

$mail2support = mail($to, $subject, $message, $headers);
Date : 2011-03-22 14:41:09 By : Mike
 


 

No. 189

Guest


ปัญหาอีกอย่างเหมือนคนก่อนหน้านี้ครับ
รบกวนช่วยดูให้หน่อยนะครับ ขอบคุณมากๆ

อัพโหลดรูปภาพสินค้าไม่ได้
โค้ดนี้อยู่ในไฟล์ editproduct.php ในโฟเดอ Admin ต้องปรับแก้ยังไงครับ

//=========== บันทึกข้อมูลสินค้า
$sql_up = "update product set ProductCode='$_POST[txtProductCode]',ProductName='$_POST[txtProductName]', Description='$_POST[txtDescription]',Price='$_POST[txtPrice]' ,PriceNormal='$_POST[txtPriceNormal]',PriceSend='$_POST[txtPriceSend]', Stock='$_POST[txtStock]',Promotion='$_POST[rdoPromotion]', New='$_POST[rdoNew]' where ProductID='$_GET[ProductID]'";
$dbquery_up = mysql_query($sql_up);
//echo $sql_up;
// exit();
//=========== แก้ไขไฟล์เล็ก
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);
}


echo"<script language='JavaScript'>";
echo"alert('แก้ไขข้อมูลเรียบร้อยแล้ว');";
echo"window.location='editproduct.php?ProductID=$_GET[ProductID]';";
echo"</script>";
}
Date : 2011-03-22 15:18:49 By : Mike
 


 

No. 190



โพสกระทู้ ( 8 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบพระคุณค่ะ เป็นประโยชน์มากเลย
Date : 2011-03-22 21:11:31 By : neung2220
 


 

No. 191



โพสกระทู้ ( 38 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค่ะ
Date : 2011-03-23 14:17:46 By : puwin
 


 

No. 192



โพสกระทู้ ( 4 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-03-23 14:36:48 By : sunzero30
 


 

No. 193

Guest


แล้วรูปเล่มไม่มีหรอคับ
Date : 2011-03-24 14:08:25 By : kitti
 


 

No. 194

Guest


อยากได้มานานแล้วขอโหลดหน่อยน่ะ
Date : 2011-03-25 23:56:14 By : เจน
 


 

No. 195

Guest


พอดีเอาโค้ดไปปรับ เพื่อใส่จำนวนอนุมัติแล้วคำนวนใหม่ ถ้ามีรายการเบิกมากกว่า 1 รายการแล้วถ้าใส่เลขช่องบนอย่างเดียวไม่คำนวณให้ แต่พอใส่ช่องล่างอย่างเดียวคำนวณเหมือนกันทั้งสองช่อง ค่าเท่ากัน พอจะมีวิธีอื่นหรือป่าวค่ะ ไม่เก่งค่ะ แต่รึบมากเลยช่วยหน่อยนะคะ
Order
โค้ดที่ปรับมั่วนะคะอย่าขำล่ะ
<?
ob_start();
session_start();
if($_SESSION["adminlogin"]=="")
{
header('location:index.php');
exit();
}
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล
require_once('../connect/connect.php');
require_once('../connect/function.php');

if($_GET["Action"]=="UpdateStatus" )
{
$sql="update cusorder set status='$_POST[rdoStatus]' where OrderNo='$_GET[OrderNo]'";
$query=mysql_query($sql);
$sql="update order_detail set Quanlity1='$_SESSION[strQuanlity1]' where OrderNo='$_GET[OrderNo]'";
$query=mysql_query($sql);
$sql = "update product set Stock=Stock-($_SESSION[strQuanlity1]) where ProductID='$_GET[ProductID]'";
$query = mysql_query($sql);
header("location:$_SERVER[PHP_SELF]?OrderNo=$_GET[OrderNo]");
}
?>
<html>
<title>..:: ระบบจัดการฐานข้อมูล ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<script language="JavaScript" src="editor.js"></script>
<div align="center"><br>
<?
//=========== อ่านใบสั่งซื้อ
$result=select("cusorder","where 1=1 and OrderNo='".$_GET["OrderNo"]."'");
if(!$result)
{
header("location:cusorder.php");
}
$status=$result["status"];

$resultMember=select("member","where 1=1 and MemberID='".$result["MemberID"]."'");
//============ กรณีการแก้ไขรายการสั่งซื้อ
if(trim($_POST["action"]) == "Update")
{
for($i=0;$i<count($_POST["txtQua"]);$i++)
{
$strP=$_POST[txtP][$i];
$strQ=$_POST["txtQua"][$i];
if($strQ <= 0)
{
$strQ=1;
}

$_SESSION["strQuanlity1"][$strP]=$strQ;

$result=select("product","where 1=1 and ProductID='".$_SESSION["strQuanlity1"][$strP]."'");
if($result["Stock"] < $strQ)
{

}


}
session_write_close();
//============ กระโดด Refresh ใหม่อีกรอบ
header("location:$_SERVER[PHP_SELF]");
}
?>
<table cellspacing=1 cellpadding=4 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="100%" bgcolor="#FFFFFF"> <div align="center"></div>
<table cellspacing=1 cellpadding=4 width="100%" border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="35%" bgcolor="#FFFFFF"> <div align="left"><b><img src="../image/allrowto.gif" width="11" height="11" align="absbottom">
รายละเอียดสั่งซื้อ </b></div></td>
<td width="22%" align=middle bgcolor="#FFFFFF"> <div align="left">
</div></td>
<td width="43%" bgcolor="#FFFFFF"> <div align="right"><a href="cusorder.php">กลับไป</a></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<br>
</div>
<form action="?Action=UpdateStatus&OrderNo=<?=$_GET["OrderNo"];?><? $_GET["ProductCode"];?>
<? $_GET["Quanlity"] ;?>" method="post" name="frmUpdate" id="frmUpdate">

<table cellspacing=1 cellpadding=3 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="100%" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="12%">&nbsp;</td>
<td width="26%">&nbsp;</td>
<td width="62%">&nbsp;</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">รหัสสั่งซื้อ</td>
<td>
<?=$_GET["OrderNo"];?>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">อีเมล์</td>
<td>
<?=$resultMember["Email"];?>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">ชื่อ</td>
<td>
<?=$resultMember["Name"];?>
<?=$resultMember["LastName"];?>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">ที่อยู่</td>
<td>
<?=nl2br($resultMember["Address"]);?>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">จังหวัด</td>
<td>
<?=nl2br($resultMember["Province"]);?>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">รหัสไปรษณีย์</td>
<td>
<?=nl2br($resultMember["ZipCode"]);?>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">หมายเลขโทรศัพท์</td>
<td>
<?=$resultMember["Tel"];?>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">หมายเลขโทรสาร</td>
<td>
<?=$resultMember["Fax"];?>
</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td width="26%" bgcolor="#FFFFFF"> <div align="left"></div></td>
<td>&nbsp;</td>
</tr>
</table>
<table width="456" border="0" align="center">
<tr>
<td><strong><b><img src="../image/allrowto.gif" width="11" height="11" align="absbottom"></b>
รายละเอียด</strong><input name="action" type="hidden" id="action" value="Update"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><table width="98%" height="21" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#666666">
<tr bgcolor="#FFFFEF">
<td><div align="center">ลำดับ</div></td>
<td>รหัสพัสดุ</td>
<td>ชื่อพัสดุ</td>
<td><div align="center">ราคา</div></td>
<td><div align="center">ค่าจัดส่ง</div></td>
<td><div align="center">จำนวน</div></td>
<td><div align="center">จำนวนที่อนุมัติ</div></td>
<td><div align="center">รวม</div></td>
</tr>
<?
//=========== อ่านว่ามีรายการสั่งซื้ออะไรบ้าง
$strNum=0;
$strTotal=0;
$sqlOrder="select * from order_detail where 1=1 and OrderNo='".$result["OrderNo"]."' ";
$queryOrder=mysql_query($sqlOrder);
while($resutOrder=mysql_fetch_array($queryOrder))
{
$result=select("product","where 1=1 and ProductID='".$resutOrder["ProductID"]."' ");
if($result)
{
$strNum++;
?>
<tr bgcolor="#FFFFEF">
<td width="9%"> <div align="center">
<?=$strNum;?>
</div></td>
<td width="48%"><?=$result["ProductCode"];?>
<?=$_GET["ProductCode"];?></td>
<td width="48%">
<?=$result["ProductName"];?> </td>
<td width="14%"> <div align="right">
<?="".number_format($result["PriceNormal"], 2,'.',',');?>
</div></td>
<td width="13%">
<div align="right"><?="".number_format($result["PriceSend"], 2,'.',',');?>
</div></td>
<td width="13%"><div align="center">
<?=$resutOrder["Quanlity"]; ?>
</div></td>
<td width="13%"><div align="center">
<input name="txtP[]" type="hidden" id="txtP[]" value="<?=$i;?>">
<input name="txtQua[]" type="textP" id="txtQua<?=$strNum;?>" style="width:30px;text-align:right" value="<?=$_SESSION["strQuanlity1"]["$i"];?>" maxlength="3" onChange="checknum(this.value,'txtQua<?=$strNum;?>');">
</div></td>
<td width="16%"> <div align="right">
<?="".number_format(($result["PriceNormal"]+$result["PriceSend"])*$_SESSION["strQuanlity1"]["$i"], 2,'.',',');?>
</div></td>
</tr>
<?
$strTotal=$strTotal+(($result["PriceNormal"]+$result["PriceSend"])*$_SESSION["strQuanlity1"]["$i"]);
}
}
?>
</table>
<br> <table width="98%" height="21" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#666666">
<tr bgcolor="#FFFFEF">
<td><div align="right">จำนวน (รายการ)</div></td>
<td> <div align="right">
<?=$strNum;?>
</div></td>
</tr>
<tr bgcolor="#FFFFEF">
<td> <div align="right">ราคารวม (บาท)</div></td>
<td width="16%"> <div align="right">
<?="".number_format($strTotal, 2,'.',',');?>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td width="378"><div align="center">

<div align="left">
<table width="110%" height="58" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="77%"><strong>สถานะ </strong> <input name="rdoStatus" type="radio" value="1" <? if($status=="1"){?>checked<?}?>>
รอการอนุมัติ
<input name="rdoStatus" type="radio" value="2" <? if($status=="2"){?>checked<?}?>>
อนุมัติ/จัดส่งพัสดุเรียบร้อยแล้ว </td>
<td width="23%"> <?
if($strNum>0)
{?>
<input name="BtnCalu" type="submit" class="button" id="BtnCalu" value="คำนวณเงินใหม่">
<input name="Submit" type="submit" class="button" value="Submit"><?}?></td>
</tr>
</table>
</div>
</form>
<br>
Date : 2011-03-27 17:16:48 By : ปุ๊ก
 


 

No. 196

Guest


ขอบครุงน่ะคร่า...><
Date : 2011-03-28 23:54:31 By : Cheer
 


 

No. 197



โพสกระทู้ ( 99 )
บทความ ( 0 )



สถานะออฟไลน์
Twitter Facebook

ขอบคุณครับ
Date : 2011-03-29 09:06:14 By : shinjangs
 


 

No. 198



โพสกระทู้ ( 93 )
บทความ ( 0 )



สถานะออฟไลน์


เรื่องการupload รูปภาพลองแก้ตามนี้ดูคับ

//=========== แก้ไขไฟล์เล็ก

if(isset($_FILES["file"]["name"])) {
if(copy($_FILES["file"]['tmp_name'], "../picture/".$_FILES["file"]["name"])) {
$pic=$_FILES["file"]["name"];

$sql_up = "update `product` set `Picture`='$pic' where `ProductID`='$_GET[ProductID]'";
$dbquery_up = mysql_query($sql_up);
}
}

echo"<script language='JavaScript'>";
echo"alert('แก้ไขข้อมูลเรียบร้อยแล้ว');";
echo"window.location='editproduct.php?ProductID=$_GET[ProductID]';";
echo"</script>";
}

file ชื่อ Control
../picture/ -->โพลเดอร์เก็บรูป
Date : 2011-03-29 09:44:10 By : Mr.Poo
 


 

No. 199



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


ขอถามเรื่อง ระบบ login ครับ
เวลาเรา login เราต้องใช้ email และ password ในการ login ใช่ไม่ครับ
พอ login เสร็จ มันก็จะขึ้นแบบนี้ครับ
ยินดีต้อนรับ email ที่เราสมัคร
ผมอยากเปลี่ยนให้มันโชว์เป็นชื่อผู้สมัครแบบนี้ครับ
ยินดีต้อนรับ (ชื่อที่สมัคร)
ต้องแก้ยังไงครับ ขอบคุณมากครับ
Date : 2011-04-06 18:58:03 By : lovet
 


 

No. 200



โพสกระทู้ ( 93 )
บทความ ( 0 )



สถานะออฟไลน์


เอา ฟิลล์ ชื่อมาใส่แทน mail คับ
Date : 2011-04-06 21:57:55 By : Mr.Poo
 


 

No. 201



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


ประมาณไหนหรอครับ


ประวัติการแก้ไข
2011-04-06 22:45:59
Date : 2011-04-06 22:43:56 By : lovet
 


 

No. 202

Guest


ขอบคุณมากครับผม
Date : 2011-04-10 22:43:09 By : burning
 


 

No. 203



โพสกระทู้ ( 5 )
บทความ ( 0 )



สถานะออฟไลน์


-ขอบคุณครับ
Date : 2011-04-11 02:42:38 By : rawat2543
 


 

No. 204



โพสกระทู้ ( 5 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-04-11 02:43:23 By : rawat2543
 


 

No. 205



โพสกระทู้ ( 5 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับผม
Date : 2011-04-11 02:44:00 By : rawat2543
 


 

No. 206



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับ
Date : 2011-04-11 11:03:09 By : pokkynoi
 


 

No. 207

Guest


ขอบคุณครับ
Date : 2011-04-11 11:50:47 By : คนเรียนรู้
 


 

No. 208

Guest


ขอบคุณมาก ๆ ครับ
Date : 2011-04-21 10:18:22 By : ขอบคุณมาก ๆ ครับ
 


 

No. 209



โพสกระทู้ ( 14 )
บทความ ( 0 )



สถานะออฟไลน์


ตามมาขอบคุณอีกคนครับ
Date : 2011-04-21 17:31:26 By : iammonster
 


 

No. 210

Guest


ขอบคุณจะเอาไปศึกษาดูครับ
Date : 2011-04-21 21:21:57 By : koy
 


 

No. 211

Guest


แจ๋ม
Date : 2011-04-24 10:07:53 By : แจ๋ม
 


 

No. 212

Guest


ขอบคุณหลาย ๆ
Date : 2011-04-24 21:12:33 By : thankx
 


 

No. 213



โพสกระทู้ ( 7 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-04-25 10:11:42 By : phionixz
 


 

No. 214



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


อยากทราบว่าเมื่ออัพโหลดลง host แล้ว ต้องทำไงต่อครับ
เช่น chmode อะไรประมาณเนี่ยครับ
Date : 2011-04-25 16:27:45 By : ilovefacebook
 


 

No. 215



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


<?PHP
session_start();


//Create 'cart' if it doesn't already exist
if (!isset($_SESSION['SHOPPING_CART'])){ $_SESSION['SHOPPING_CART'] = array(); }

//Add an item only if we have the threee required pices of information: name, price, qty
if (isset($_POST['Id_Pro']) && isset($_POST['price']) && isset($_POST['qty'])){
//Adding an Item
//Store it in a Array
$ITEM = array(
//Item name
'name2' => $_POST['add2'],
'name3' => $_POST['product_id'],
'name4' => $_POST['product_id2'],
'name' => $_POST['Id_Pro'],
'name5' => $_POST['product_id3'],
'name6' => $_POST['product_id4'],
'name5' => $_POST['product_id3'],
'price' => $_POST['price'],
'qty' => $_POST['qty']
);

//Add this item to the shopping cart
$_SESSION['SHOPPING_CART'][] = $ITEM;
//Clear the URL variables
header('Location: ' . $_SERVER['PHP_SELF']);
}
//Allowing the modification of individual items no longer keeps this a simple shopping cart.
//We only support emptying and removing
else if (isset($_GET['remove'])){
//Remove the item from the cart
unset($_SESSION['SHOPPING_CART'][$_GET['remove']]);
//Re-organize the cart
//array_unshift ($_SESSION['SHOPPING_CART'], array_shift ($_SESSION['SHOPPING_CART']));
//Clear the URL variables
header('Location: ' . $_SERVER['PHP_SELF']);
}
else if (isset($_GET['empty'])){
//Clear Cart by destroying all the data in the session
session_unregister("SHOPPING_CART");
//Clear the URL variables
header('Location: ' . $_SERVER['PHP_SELF']);

}
else if (isset($_POST['update'])) {
//Updates Qty for all items
foreach ($_POST['items_qty'] as $itemID => $qty) {
//If the Qty is "0" remove it from the cart
if ($qty == 0) {
//Remove it from the cart
unset($_SESSION['SHOPPING_CART'][$itemID]);
}
else if($qty >= 1) {
//Update to the new Qty
$_SESSION['SHOPPING_CART'][$itemID]['qty'] = $qty;
}
}
//Clear the POST variables
header('Location: ' . $_SERVER['PHP_SELF']);
}

?>

<script type="text/javascript" language="JavaScript1.2" src="Dark/stmenu.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="Dark/stmenu.js"></script>
<script type="text/javascript" src="console/iepngfix_tilebg.js":></script>
<script type="text/javascript" src="console/bgsleight.js"></script>
<script type="text/javascript" src="console/jcloader.php?f=jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="console/jquery.cycle.all.js"></script>
<script type="text/javascript" src="console/sb.js"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
function checkform (form,$num)
{
if (form.items_qty[<?php echo $itemNumber; ?>].value == "") {
alert( "โปรดกรอกจำนวนสินค้าที่สั่งซื้อด้วย" );
form.items_qty[<?php echo $itemNumber; ?>].focus();
return false ;
}

if (form.items_qty[<?php echo $itemNumber; ?>].value <= 0) {
alert( "จำนวนที่จะสั่งซื้อต้องมากกว่าศูนย์" );
form.items_qty[<?php echo $itemNumber; ?>].focus();
return false ;
}

if (form.items_qty[<?php echo $itemNumber; ?>].value != "") {
var val = form.items_qty[<?php echo $itemNumber; ?>].value;
var chars = "0123456789";
var len = val.length;
var char = "";

for (i=0; i<len; i++)
{
char = val.charAt(i);
if (chars.indexOf(char)==-1)
{
alert("จำนวนสินค้าที่สั่งซื้อต้องเป็นเลขจำนวนเต็มบวกเท่านั้น");
form.items_qty[<?php echo $itemNumber; ?>].focus();
return false;
}
}
}

if (form.items_qty[<?php echo $itemNumber; ?>].value > $num) {
alert( "ไม่สามารถสั่งซื้อได้ : สินค้ามีจำนวนไม่เพียงพอ" );
form.items_qty[<?php echo $itemNumber; ?>].focus();
return false ;
}

return true ;
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>ระบบขาย - ซ่อม สินค้าคอมพิวเตอร์</title>
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-bottom: 0px;
}
.style1 {font-size: 24px}
.style99 {color: #FFFFCC}
.style100 {color: #000000}
.style103 {color: #000000; font-weight: bold; }
-->
</style><body>
<table width="724" height="413" border="1" align="center" bordercolor="#000000">
<tr>
<td width="766" height="407" valign="top"><?
include("con_db.php");
$sql="SELECT *FROM pro WHERE Id_Pro ='$Id_Pro'";
$result = mysql_query($sql,$conn);
$rs = mysql_fetch_array($result);

$num="$rs[num]";
?>
<div id="shoppingCartDisplay">
<div align="center">
<p>


</p>
<p><span class="style1">ตะกร้าสินค้า</span><br>

<br>
</p>
</div>


<form action="orderconfirm_log.php" method="post" name="shoppingcart" id="shoppingcart"onSubmit="return checkform(this,<? echo $num; ?>);">
<p align="center">
<?php
ob_start();
?>

</p>
<table id="" width="600" border="1" align="center" bordercolor="#0000FF" bgcolor="#FFFFCC">
<tr bgcolor="#8B5F36" class="style97">

<th width="109" scope="col">&nbsp;</th>
<th width="103" scope="col"><span class="style129">ชื่อสินค้า</span></th>
<th width="135" scope="col"><span class="style129">รายละเอียด</span></th>
<th width="99" scope="col"><span class="style129">ราคา/หน่วย</span></th>
<th width="35" scope="col"><span class="style129">จำนวน</span></th>
<th width="79" scope="col"><span class="style129">รวม</span></th>
</tr>
<?php
$_SESSION['total'] = 0;

foreach ($_SESSION['SHOPPING_CART'] as $itemNumber => $item) {
?> <tr bgcolor="#FFFFCC" id="<? $itemNumber?>">
<th scope="row"><div align="center"><font><a href="?remove=<?php echo $itemNumber; ?>" style="text-decoration:none">ลบ</a></font> </div></th>

<td bgcolor="#FFFFCC"><div align="center"><?php echo $item['name2']; ?></div></td>

<td bgcolor="#FFFFCC"><div align="left"><?php echo $item['name5']; ?></div></td>

<td bgcolor="#FFFFCC"><div align="center"><?php echo number_format($item['price']); ?></div></td>
<td><font>
<center>
<input name="items_qty[<?php echo $itemNumber; ?>]" type="text" id="item<?php echo $itemNumber; ?>_qty" value="<?php echo $item['qty']; ?>" size="2" maxlength="5"> </td>
<td><div><?php echo number_format($item['qty'] * $item['price']); ?></div></td>
</tr>
<?php
$_SESSION['total'] += $item['qty'] * $item['price'];
}
?>
<tr bgcolor="#8B5F36" class="style97">

<th colspan="3" bgcolor="#FFFFCC" scope="col"><div align="left">ภาษีมูลค่าเพึ่ม (7%)</div></th>
<th colspan="3" bgcolor="#FFFFCC" scope="col"><div align="right"><span class="style103"><? echo number_format(0.07*$_SESSION['total']); ?></span> บาท</div></th>
</tr>
<tr bgcolor="#FFFFCC">
<th scope="row"><div align="left"><span class="style108">ราคารวม</span></div></th>
<td colspan="5"><div align="right" class="style108"><span class="style99">
<input name="status2" type="hidden" id="status2" value="ยังไม่ได้ชำระเงิน" maxlength="30"/>
<input name="status" type="hidden" id="status" value="ยังไม่ได้ส่งสินค้า" maxlength="30"/>
</span><span class="style100"><? echo number_format((0.07*$_SESSION['total'])+$_SESSION['total'],2,'.',','); ?>&nbsp;</span>บาท</div></td>
</tr>
</table>
<div align="center">
<?php $_SESSION['SHOPPING_CART_HTML'] = ob_get_flush(); ?>
</div>
<div align="center"></div>
<p align="center"><span class="style99">
<input name="submit2" type="submit" value="ยืนยันการสั่งซื้อ" />
</span></label>
</p>

</form>

<p align="center"><font> [ <a href="javascript:window.close();" style="text-decoration:none">กลับไปซื้อสินค้า</a> ] </font><font> [<a href="?empty" style="text-decoration:none">ลบสินค้าทุกรายการ</a>]</font></p>
</div><p>&nbsp;</p></td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>
Date : 2011-04-28 22:53:39 By : Linkinparkjom
 


 

No. 216



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-04-30 09:24:37 By : sueboonkiat
 


 

No. 217

Guest


ขอบคุณคร้าบ
Date : 2011-05-01 14:10:17 By : ชาติ
 


 

No. 218

Guest


ขอบคุณค่ะ สำหรับโปรแกรมดีดีอย่างนี้ จะได้นำระบบไปศึกษาและพัฒนาต่อค่ะ
Date : 2011-05-04 11:03:21 By : nuchty14
 


 

No. 219

Guest


แทงกิ้ว
Date : 2011-05-06 18:02:19 By : แทงกิ้ว
 


 

No. 220



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ยังแรงไม่หยุดจริง ๆ
Date : 2011-05-07 07:49:43 By : webmaster
 


 

No. 221

Guest


ขอยืมรูปคุณ No. 195 หน่อยนะคะ คือว่าอยากให้ ค่าจัดส่งสินค้า ไปอยู่ต่อจาก บรรทัด จำนวน(รายการ)

pix

เหมือนกับรูปนี้อ่ะค่ะ

ม

ที่เมื่อรวมราคาสินค้าแล้ว ก้อ บวกค่าส่งอีก 40 บาท จากนั้นก้อเป็นราคารวมทั้งหมดที่ต้องจ่ายน่ะคะ ต้องเขียนโค้ดยังไงเหรอคะ


ขอบคุณมากๆค่ะ ><
Date : 2011-05-08 00:26:29 By : mut
 


 

No. 222



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


ไม่สามารถใช้งาน webboard ได้ครับ พอพิมพ์ให้เสร็จ กด ตั้งกระทู้ แล้วไม่มีอะไรเกิดขึ้นเลยครับ
ไม่ทราบว่าต้องแก้ไขอย่างไรครับ
ขอบพระคุณครับ
Date : 2011-05-08 18:51:42 By : ilovefacebook
 


 

No. 223

Guest


เป็นระบบที่ดีมากสําหรับการศึกษา ขอบคุณมากๆ
Date : 2011-05-09 18:53:27 By : เต้ย
 


 

No. 224



โพสกระทู้ ( 392 )
บทความ ( 0 )



สถานะออฟไลน์


กระทู้นี้ มีคนให้ความสนใจ อันดับ 1 เลยมั้ง
พี่วินทำ link แจกโหลดไปเลยคับ


ประวัติการแก้ไข
2011-05-09 21:11:24
Date : 2011-05-09 21:04:58 By : test
 


 

No. 225

Guest


แก้ไขยังไง
ปัญหาในหน้า ordercomplete.php ซึ่งไม่แสดงรายการแก้ไขยังไงครับ
Date : 2011-05-16 14:26:30 By : monofreedom
 


 

No. 226

Guest


ขอบคุณค่ะ
Date : 2011-05-18 18:58:20 By : ปาริชาต
 


 

No. 227



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


ดันๆๆๆๆๆ
Date : 2011-05-18 22:47:01 By : monofreedom
 


 

No. 228

Guest


ขอบคุณที่สุด
Date : 2011-05-19 11:59:02 By : *-*
 


 

No. 229

Guest


ขอบคุณมากค่ะ จะไปแกะ code และศึกษาดูนะคะ ^___^
Date : 2011-05-19 17:41:48 By : J&J
 


 

No. 230

Guest


ขอบคุณด้วยอิอิ
Date : 2011-05-27 21:44:09 By : เอาไปดู
 


 

No. 231

Guest


เอาด้วย
Date : 2011-05-28 08:24:45 By : thank
 


 

No. 232



โพสกระทู้ ( 15 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-05-29 14:50:25 By : sarawut_j
 


 

No. 233

Guest


ขอบคุณครับ เอาไปลองดู
Date : 2011-05-31 21:20:53 By : เดิด
 


 

No. 234



โพสกระทู้ ( 165 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณนะค่ะ
Date : 2011-06-01 10:57:06 By : axiom
 


 

No. 235

Guest


อยากทราบวิธี การสร้างฐานข้อมูลให้ใช้กับโค๊ดที่แจกให้คับ พอดีผมเพิ่งได้ลองศึกษาดูครับ กะว่าจะนำไปทำโปรเจคจบครับ
ใครพอที่จะแนะนำหลักการทำงานของระบบเว็บขายของได้บ้าง เพื่อให้ผมพอจะเข้าใจหลักการเขียนบ้าง จะได้สร้างฐานข้อมูล
ได้อย่างเข้าใจ ขอบคุณครับ
Date : 2011-06-02 15:51:31 By : สุรสิทธิ์ ศรีสามิ
 


 

No. 236



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


thaicreate เป็นเว็บแห่งการแบ่งปันจริงๆครับ
Date : 2011-06-03 12:00:58 By : ilovefacebook
 


 

No. 237

Guest


ขอบคุณด้วย
Date : 2011-06-03 20:16:23 By : ริน
 


 

No. 238



โพสกระทู้ ( 0 )
บทความ ( 0 )



สถานะออฟไลน์


ขอโทดนะค่ะ เวลาอัพรูปไม่ได้อ่าค่ะ เวลาเพิ่มสินค้า รูปไม่ขึ้นต้องทำยังไงค่ะ
Date : 2011-06-06 17:31:05 By : zomza
 


 

No. 239

Guest


ขอบคุณหน๊าาาา
Date : 2011-06-11 13:39:49 By : จ๋า
 


 

No. 240



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-06-11 23:23:24 By : marukoxi
 


 

No. 241

Guest


ขอบคุณครับ
Date : 2011-06-18 23:56:43 By : กร
 


 

No. 242

Guest


เดียวเอาไปลองดู อิอิ
Date : 2011-06-22 17:29:02 By : ชอบของฟรี
 


 

No. 243

Guest


ขอบพระคุณเป็นอย่างสูงครับ
Date : 2011-06-22 17:53:13 By : คนบ่หล่อ
 


 

No. 244

Guest


ขอบคุณครับ
Date : 2011-06-27 21:30:57 By : แมว
 


 

No. 245

Guest


ขอบคุณจ้าาา
Date : 2011-06-28 22:11:19 By : po
 


 

No. 246

Guest


ขอบคุณค่ะ
Date : 2011-06-30 04:50:28 By : manow
 


 

No. 247

Guest


ขอบคุณครับ
Date : 2011-06-30 09:39:42 By : แจ็ค
 


 

No. 248



โพสกระทู้ ( 12 )
บทความ ( 1 )



สถานะออฟไลน์
Facebook

สิ่งดีๆ และมีประโยชน์ในวงการนักเขียนโปรแกรม PHP ไทย

ขอบคุณครับ
Date : 2011-06-30 14:48:58 By : yuttasakcom
 


 

No. 249

Guest


ขอบคุณเช่นกันมาก ๆ
Date : 2011-06-30 22:27:15 By : เกรียง
 


 

No. 250

Guest


ขอบคุณมากเลย
Date : 2011-07-01 22:48:00 By : ฮองต้น
 


 

No. 251



โพสกระทู้ ( 83 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook Hi5

ขอบคุณหลายเน้อ
Date : 2011-07-07 12:15:53 By : maruk
 


 

No. 252



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ที่แจกให้โหลดไปอะครับ ผม งง ว่าต้องสร้างฐานข้อมูลอะไรบ้าง อะครับใครพอมีรูปแนะนำหน่อย
Date : 2011-07-16 09:48:12 By : tormam
 


 

No. 253



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Quote:
ที่แจกให้โหลดไปอะครับ ผม งง ว่าต้องสร้างฐานข้อมูลอะไรบ้าง อะครับใครพอมีรูปแนะนำหน่อย


มันมีอยู่ฐานข้อมูลเดียวครับ ดูใน config ครับ
Date : 2011-07-16 20:40:13 By : webmaster
 


 

No. 254



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ไม่ใช้ครับคือผมไม่รู้ว่า เราต้องสร้าง phpmyadmin ฐานข้อมูล mysql ยังไงอะครับ ขอโทษทีรบกวนนะครับ ฝึกหัดอยู่ไม่ว่ากันนะ
Date : 2011-07-17 23:54:27 By : tormam
 


 

No. 255



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Quote:
ไม่ใช้ครับคือผมไม่รู้ว่า เราต้องสร้าง phpmyadmin ฐานข้อมูล mysql ยังไงอะครับ ขอโทษทีรบกวนนะครับ ฝึกหัดอยู่ไม่ว่ากันนะ


Go to : MySQL phpMyAdmin Create Database and Table
Date : 2011-07-18 09:04:21 By : webmaster
 


 

No. 256



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอคุณครับ เดียวลองอีกที
Date : 2011-07-18 09:26:56 By : tormam
 


 

No. 257

Guest


ขอบคุณครับ
Date : 2011-07-19 22:17:26 By : patt
 


 

No. 258

Guest


ขอฐานข้อมูลด้วยครับผม
Date : 2011-07-22 16:05:41 By : tha na sak
 


 

No. 259



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Quote:
ขอฐานข้อมูลด้วยครับผม


อยู่ในโฟเดอร์ db ครับ
Date : 2011-07-22 20:53:43 By : webmaster
 


 

No. 260



โพสกระทู้ ( 62 )
บทความ ( 0 )



สถานะออฟไลน์


ขอรับไปลองนะครับ

ขอบคุณครับ
Date : 2011-07-22 23:50:46 By : attaprawat
 


 

No. 261



โพสกระทู้ ( 2,311 )
บทความ ( 1 )



สถานะออฟไลน์


ขอบคุณครับ จะลองเอาไปศึกษาดูครับ
Date : 2011-07-23 10:47:33 By : arm8957
 


 

No. 262



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอถามเกี่ยวกับ เรื่องการเอาเว็บที่เราแก้ไขหรือทำเสร็จเรียบร้อยแล้ว เอาไปไว้ที่ โฮส เราจะต้องเอาอะไรไปไว้ที่ โฮส บ้าง แล้วฐานข้อมูล Mysql ที่สร้างไว้ต้องทำไงครับ พอมี วิธี บ้างไหม
Date : 2011-07-23 15:04:34 By : tormam
 


 

No. 263



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณค้าบ
Date : 2011-07-28 15:08:12 By : jumping
 


 

No. 264



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Quote:
ขอถามเกี่ยวกับ เรื่องการเอาเว็บที่เราแก้ไขหรือทำเสร็จเรียบร้อยแล้ว เอาไปไว้ที่ โฮส เราจะต้องเอาอะไรไปไว้ที่ โฮส บ้าง แล้วฐานข้อมูล Mysql ที่สร้างไว้ต้องทำไงครับ พอมี วิธี บ้างไหม


ใช้การ Export / Import ผ่าน phpMyAdmin ครับ
Date : 2011-07-28 15:23:04 By : webmaster
 


 

No. 265



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

พี่วิน ครับ คือตตอนี้ผมมีปัญหาที่เจอ จากเว็ปที่แจกตอนนี้ 2 ข้อ ครับ
1. ถ้าสมาชิกทำการ แจ้งชำระเงิน จะเมนู แจ้งชำระเงิน ด้านซ้ายมือของเว็บแล้วเราจะ สามารถดู การแจ้งชำระเงิน ของสมาชิกที่ส่งมาตรงไหนครับ มึนๆๆ หาไม่เจอ

2. คือว่าผมได้ทดลองว่าตอนที่เราทำการสั่งซื้อสินค้าแล้ว ในตอนสุดท้ายมันจะมี รหัสสั่งซื้อเลขที่ : ORDER-000099 มาให้ใช้ไหมครับ แต่พอผมเข้าระบบ ผู้ล็อกอินแล้วเข้าไปดูที่ รายการสั่งซื้อ พอเข้าไป จะเจอ รหัสสั่งซื้อ ที่จะบอกรหัสแค่ ORDER- แต่ตัวเลขไม่มีอะครับ คือยังไง ผมลองไปแก้ใน mysql ตรง order_detall และเข้าไปเลือกตรงตาราง OrderNo แก้ ให้เป็นรับข้อมูลจาก 6 เป็น 12 แล้วลองทำการทดลองซื้อสินค้าใหม่ มาดูใน ฐานข้อมูล จะเห็นรหัสสั่งซื้อ ที่มีรหัสครบแล้ว แต่ลองกลับเข้าไปที่ ผู้ดูแลระบบอีกที เข้าไปดูรหัสมันก็เป็นแบบเดิมอะครับ สรุป คือว่าแก้แล้ว ยังเป็นเหมือนเดิม
Date : 2011-07-31 18:34:25 By : tormam
 


 

No. 266



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

รูปภาพเปรียบเทียบ ระหว่าง รหัสหลังการสั่งซื้อกับ รหัสตรงร


รูปภาพเปรียบเทียบ ระหว่าง รหัสหลังการสั่งซื้อกับ รหัสตรงร
Date : 2011-07-31 18:41:57 By : tormam
 


 

No. 267



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ลืมบอกอีกอีกอย่างครับ คือในรูปที่ 2 จะเห็นว่า

รายระเอียด ไม่มีข้อมูลสินค้า และราคามาเลยอะครับ ช่วยทีนะครับ ต้องส่งจาร


ปล.ขอบคุณมาใน ณ ที่นี้ด้วย
Date : 2011-07-31 19:06:28 By : tormam
 


 

No. 268



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ในรูปที่ 2 ที่ รายระเอียด ไม่มีข้อมูลสินค้า และราคา ตอนนี้ แก้ได้แล้วครับ ช่วยทีนะครับ
Date : 2011-08-01 15:20:13 By : tormam
 


 

No. 269



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

เค ครับแก้รหัสได้แล้ว ขอโทษทีรบกวนกันนะครับ อิอิ ขอคุณมากๆ เดียวมีอะไรจะมาอีกที
Date : 2011-08-02 14:28:19 By : tormam
 


 

No. 270

Guest


ขอบคุณคร๊าบบบ
Date : 2011-08-02 21:44:56 By : ขอบคุณคร๊าบบบ
 


 

No. 271



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ลืมไป หนึ่งข้อ ครับ ที่ จะตวรจดูการแจ้งชำระเงินอะครับ ไม่รุว่ามันอยู่ไหน
Date : 2011-08-02 22:15:01 By : tormam
 


 

No. 272



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

พี่วินคับ ช่วยดูที อัฟภาพขึ้น host แล้ว ภาพไม่แสดงอะครับ แต่ตอนรันในเครื่องมันออกนะครับ
ภาพไม่ขึ้น
Date : 2011-08-03 00:42:04 By : tormam
 


 

No. 273



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

เงียบไม่มีใครตอบเลยอะ
Date : 2011-08-03 17:39:25 By : tormam
 


 

No. 274



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

TT ทำไงดี
Date : 2011-08-04 15:41:18 By : tormam
 


 

No. 275

Guest


พี่โค้ดที่แจกมา เอาขึ้น host ของ P&T hosting อัพรูปไม่ขึ้น แต่ ทำบน localhost อัพได้

ช่วยดูโค้ด ยกตัวอย่าง category.php
ตัดมาน่ะคับ

{
$path="../picture"; <<ตรงนี้อ่ะครับ ให้เปลี่ยนเป็นอะไร มันค่อยจะอัพขึ้นโอสจริงได้ ยกตัวอย่าง นิดนุงกะได้คับ
//=========== อัพโหลตรูปภาพ
copy( $file1 , "$path/$file1_name" );
//=========== บันทึกข้อมูล
$sql = "insert into category(CategoryName,Picture) values ('$_POST[txtCategoryName]','$file1_name')";
$dbquery = mysql_query($sql);

echo"<script language='JavaScript'>";
echo"alert('เพิ่มข้อมูลเรียบร้อยแล้ว');";
echo"window.location='category.php';";
echo"</script>";

}
Date : 2011-08-05 16:16:58 By : ผู้ศึกษา
 


 

No. 276

Guest


connect.php ผม

<?
/*=============== µÔ´µèÍ°Ò¹¢éÍÁÙÅ =================*/
$host="localhost";
$user_name="zp2077";
$pass_word="xxxxxxxxx";
$db="zp2077_sale";
$admin_email = "[email protected]";
mysql_connect( $host,$user_name,$pass_word) or die ("µÔ´µè͡Ѻ°Ò¹¢éÍÁÙÅ Mysql äÁèä´é ");
mysql_select_db($db) or die("àÅ×Í¡°Ò¹¢éÍÁÙÅäÁèä´é");

?>




122.155.5.147
Date : 2011-08-05 16:23:12 By : ผู้ศึกษา
 


 

No. 277

Guest


<? //=========== กรณีมีการแก้ไขหมวดสินค้า
if($_POST["update"]==True)
{
//=========== บันทึกข้อมูล
$sql_up = "update category set CategoryName='$_POST[txtCategoryName]',CheckStock='$_POST[txtCheck]' where CatID='$_POST[CatID]'";

//echo $sql_up ;
$dbquery_up = mysql_db_query($db, $sql_up);
//exit();
//=========== ถ้ามีการแก้ไขไฟล์
if(!empty($file1))
{
$path="../picture";
@copy( $file1 ,"$path/$file1_name");
$sql_up = "update category set Picture='$file1_name' where CatID='$_POST[CatID]'";
$dbquery_up = mysql_db_query($db, $sql_up);
}

echo"<script language='JavaScript'>";
echo"alert('แก้ไขข้อมูลเรียบร้อยแล้ว');";
echo"window.location='category.php';";
echo"</script>";
}

//=========== ถ้ามีการลบข้อมูล
if($_GET["del"]==True)
{
//=========== ลบหมวด
$sql_del= "delete from category where CatID='$_GET[CatID]'";
$dbquery_del = mysql_query($sql_del);
//=========== ลบรูปภาพ
@unlink("../picture/$_GET[filename]");
echo"<script language='JavaScript'>";
echo"alert('ลบข้อมูลเรียบร้อยแล้ว');";
echo"window.location='category.php';";
echo"</script>";
}
//=========== ถ้ามีการเพิ่มหมวดหมวดใหม่
if($_POST["add"]==True)
{
$path="../picture";
//=========== อัพโหลตรูปภาพ
copy( $file1 , "$path/$file1_name" );
//=========== บันทึกข้อมูล
$sql = "insert into category(CategoryName,Picture) values ('$_POST[txtCategoryName]','$file1_name')";
$dbquery = mysql_query($sql);

echo"<script language='JavaScript'>";
echo"alert('เพิ่มข้อมูลเรียบร้อยแล้ว');";
echo"window.location='category.php';";
echo"</script>";

}

//=========== เอาข้อมุลมาแสดงทั้งหมด
$sql_group = "select * from category order by CatID asc";
$dbquery_group = mysql_query($sql_group);
$num_rows_group = mysql_num_rows($dbquery_group);
while ($result = mysql_fetch_array($dbquery_group))
{
?>
<form name="frm <?=$i;?>" method="post" action="<?=$_SERVER['PHP_SELF'];?>" enctype="multipart/form-data">
</form>
<?




รอคำตอบอยู่..... น่ะครับ ขอความกรุณาด้วยครับ
Date : 2011-08-05 16:31:43 By : ผู้ศึกษา
 


 

No. 278



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

เหมือนผมเลยเอาขึ้นhost จริง แล้ว ตอนเราอัพ ภาพไม่ออกอะนะ ใช่ปะครับ กำลัง งม หาวิธี มึนเลย
Date : 2011-08-05 17:59:35 By : tormam
 


 

No. 279



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ตรงไฟล์นี้ครับ [font=Verdana]editproduct.php[/font] ตอนลองรันใน localhost มัน อัพรูปได้แล้วเห็นรูปแต่พอเรา เอาขึ้น host จริงแล้ว อัพได้ แต่รูปไม่ขึ้น

<?
ob_start();
session_start();
if($_SESSION["adminlogin"]=="")
{
header('location:index.php');
exit();
}
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล
require_once('../connect/connect.php');
require_once('../connect/function.php');

//=========== กรณีมีการแก้ไขรายการสินค้า
if($_GET["Action"]=="Save")
{
//=========== บันทึกข้อมูลสินค้า
$sql_up = "update product set ProductCode='$_POST[txtProductCode]',ProductName='$_POST[txtProductName]',Description='$_POST[txtDescription]',Price='$_POST[txtPrice]',PriceNormal='$_POST[txtPriceNormal]',PriceSend='$_POST[txtPriceSend]',Stock='$_POST[txtStock]',Promotion='$_POST[rdoPromotion]',New='$_POST[rdoNew]' where ProductID='$_GET[ProductID]'";
$dbquery_up = mysql_query($sql_up);
//echo $sql_up;
// exit();
//=========== แก้ไขไฟล์เล็ก
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);
}


echo"<script language='JavaScript'>";
echo"alert('แก้ไขข้อมูลเรียบร้อยแล้ว');";
echo"window.location='editproduct.php?ProductID=$_GET[ProductID]';";
echo"</script>";
}

?>
<html>
<title>..:: ระบบจัดการฐานข้อมูล ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<script language="JavaScript" src="editor.js"></script>
<div align="center"><br>
<?
//=========== อ่านว่าคือสินค้าชนิดใด
$result=select("product","where 1=1 and ProductID='".$_GET["ProductID"]."'");
if(!$result)
{
header("location:product.php");
}

?>
<table cellspacing=1 cellpadding=4 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="100%" bgcolor="#FFFFFF"> <div align="center"></div>
<table cellspacing=1 cellpadding=4 width="100%" border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="35%" bgcolor="#FFFFFF"> <div align="left"><b><img src="../image/allrowto.gif" width="11" height="11" align="absbottom">
แก้ไขรายการสินค้า</b></div></td>
<td width="22%" align=middle bgcolor="#FFFFFF"> <div align="left">
</div></td>
<td width="43%" bgcolor="#FFFFFF"> <div align="right"><a href="product.php?CatID=<?=$result["CatID"];?>">กลับไป</a></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</div>

<form name="frm<?=$i;?>" method="post" action="<?=$_SERVER['PHP_SELF'];?>?ProductID=<?=$_GET["ProductID"];?>&Action=Save" enctype="multipart/form-data" onSubmit="return checkvalue()">
<table cellspacing=1 cellpadding=3 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="31" bgcolor="#FFFFFF"> <script language="Javascript1.2"><!-- // load htmlarea
_editor_url = ""; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
<script language="JavaScript">
function checkvalue()
{

if(parseInt(document.all.txtPrice.value) >= parseInt(document.all.txtPriceNormal.value))
{
alert('ราคาพิเศษจะต้องน้อยกว่ากว่าราคาปกติ');
document.all.txtPrice.focus();
return false;
}else
{ return true; }

}
</script>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="18%">&nbsp;</td>
<td width="82%">&nbsp;</td>
</tr>
<tr>
<td valign="top">รหัสสินค้า <font color="#FF0000">** </font></td>
<td><input name="txtProductCode" type="text" class="txtbox" id="txtProductCode" value="<?=$result["ProductCode"];?>" maxlength="20" readonly="true">
</td>
</tr>
<tr>
<td valign="top">สินค้าโปรโมชั่น <font color="#FF0000">** </font></td>
<td><input name="rdoPromotion" type="radio" value="Yes" <? if($result["Promotion"]=="Yes"){?>checked<?}?>>
ใช่
<input type="radio" name="rdoPromotion" value="No" <? if($result["Promotion"]=="No"){?>checked<?}?>>
ไม่ใช่</td>
</tr>
<tr>
<td valign="top">สินค้าใหม่ <font color="#FF0000">** </font></td>
<td><input name="rdoNew" type="radio" value="Yes" <? if($result["New"]=="Yes"){?>checked<?}?>>
ใช่
<input type="radio" name="rdoNew" value="No" <? if($result["New"]=="No"){?>checked<?}?>>
ไม่ใช่</td>
</tr>
<tr>
<td valign="top">ชื่อสินค้า <font color="#FF0000">** </font></td>
<td><input name="txtProductName" type="text" class="txtbox" id="txtProductName" style="width:550" value="<?=$result["ProductName"];?>" maxlength="100"></td>
</tr>
<tr>
<td valign="top">ราคาปกติ <font color="#FF0000">** </font></td>
<td><input name="txtPriceNormal" type="text" class="txtbox" id="txtPriceNormal" value="<?=$result["PriceNormal"];?>" size="10" maxlength="20">
บาท </td>
</tr>
<tr>
<td valign="top">ราคาพิเศษ <font color="#FF0000">** </font></td>
<td><input name="txtPrice" type="text" class="txtbox" id="txtPrice" value="<?=$result["Price"];?>" size="10" maxlength="20">
บาท </td>
</tr>
<tr>
<td valign="top">ค่าจัดส่ง</td>
<td><input name="txtPriceSend" type="text" class="txtbox" id="txtPriceSend" value="<?=$result["PriceSend"];?>" size="10" maxlength="20">
บาท </td>
</tr>
<tr>
<td valign="top">สำนวนสต็อก <font color="#FF0000">** </font></td>
<td><input name="txtStock" type="text" class="txtbox" id="txtStock" value="<?=$result["Stock"];?>" size="10" maxlength="20"></td>
</tr>
<tr>
<td valign="top">รูปภาพ <font color="#FF0000">** </font></td>
<td><img src="../picture/<?=$result["Picture"];?>" /></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td><input name="file" type="file" class="txtbox" id="file"><INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="100000"></td>
</tr>
<tr>
<td valign="top">รายละเอียด <font color="#FF0000">** </font></td>
<td><textarea name="txtDescription" cols="40" rows="10" class="txtbox" id="txtDescription" style="width:550; height:450"><?=$result["Description"];?></textarea>
<script language="javascript1.2">
editor_generate('txtDescription');
</script> &nbsp;</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>


<td><input name="Submit" type="submit" class="button" value="บันทึก">
<input name="Cancel" type="button" class="button" id="Cancel" value="ยกเลิก" onClick="window.location='product.php?CatID=<?=$result["CatID"];?>';"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>

</tbody>
</table>
<table cellspacing=0 cellpadding=4 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="100%" bgcolor="#FFFFFF"> <div align="center"></div>
<table cellspacing=1 cellpadding=4 width="100%" border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="35%" bgcolor="#FFFFFF"> <div align="left"></div></td>
<td width="22%" align=middle bgcolor="#FFFFFF"> <div align="left">
</div></td>
<td width="43%" bgcolor="#FFFFFF"> <div align="right"><a href="product.php?CatID=<?=$result["CatID"];?>">กลับไป</a></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</form>
Date : 2011-08-05 18:02:12 By : tormam
 


 

No. 280

Guest


ใช้ครับปัญหาเดียวกันเลยครับ ถ้าทำแล้วแล้วไงก็แอดมาบอกกันด้วยน่ะคับ งงเหมือนกัน คิคิ แบบว่ากำลังศึกษาอ่ะคับ

ได้แล้วแอดบอกด้วยน่ะ [email protected] ^_^ ช่วยกันครับ
Date : 2011-08-05 19:39:28 By : ผู้ศึกษา
 


 

No. 281



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

แอดไปแล้วครับรับด้วย
Date : 2011-08-05 20:46:21 By : tormam
 


 

No. 282



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

แก้ไม่ได้ T-T
Date : 2011-08-06 11:49:28 By : tormam
 


 

No. 283



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

โค้ดนี้ผิดตรงไหนอะ

นี่คือโค๊ตอัพโหลดรูป

<?php require_once('Connections/condb.php'); ?>
<?php
$colname_image = "-1";
if (isset($_GET['iImage'])) {
$colname_image = (get_magic_quotes_gpc()) ? $_GET['iImage'] : addslashes($_GET['iImage']);
}
mysql_select_db($database_condb, $condb);
$query_image = sprintf("SELECT * FROM image WHERE id = %s", $colname_image);
$image = mysql_query($query_image, $condb) or die(mysql_error());
$row_image = mysql_fetch_assoc($image);
$totalRows_image = mysql_num_rows($image);
?><?
if($hidAction == "Add") { //เช็คค่า hidden ที่่ส่งมา ถ้าเท่ากับ Add ให้โปรแกรมทำงาน
$date = date("U"); //สร้างเลข 10 หลักมาจากเวลา เพื่อเอาไปใช้เป็นชื่อของรูป ป้องกันชื่อรูปซ้ำ
if($file != "") {
$type = getimagesize($file); //หาประเภทของรูปภาพ
if($type[2] == 1) { //เมื่อรูปภาพเป็นชนิด gif
$image = $date."_img.gif";
} else if($type[2] == 2) { //เมื่อรูปภาพเป็นชนิด jpg
$image = $date."_img.jpg";
}
copy($file, "images/$image"); //ก๊อปปี้รูปภาพไปยังโพลเดอร์ images
chmod("images/$image", 0664); //ทำการ changmode
}

$host="localhost";
$db_username="root";
$db_password="root";
$dbname="catalog"; //ชื่อฐานข้อมูล
$connect = mysql_connect($host,$db_username,$db_password);
if(!$connect){
echo "ไม่สามารถติดต่อฐานข้อมูลได้"; exit();
}

$sql = "insert into image (id, image) values ('', '$image') "; //เพิ่มข้อมูลลงดาต้าเบส โดยเอาชื่อของรูปไปเก็บไว้
$dbquery = mysql_db_query($dbname, $sql);
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
</head>

<body>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<input type="file" name="file" />
<input type="submit" name="Submit" value="อัปรูป" />
<input name="hidAction" id="hidAction" type="hidden" value="Add">
</form>
</body>
</html>
<?php

?>





นี่คือโค๊ตโชว์

<?
$hostname = "localhost";
$user = "root";
$password = "root";
$dbname = "catalog";
$tblname = "image";
mysql_connect($hostname, $user, $password) or die("ติดต่อฐานข้อมูลไม่ได้");
mysql_select_db($dbname) or die("เลือกฐานข้อมูลไม่ได้");
$sql = "select * from $tblname where id=$id"; //ดูที่เงื่อนไขตรงนี้ให้ดีนะครับ
$result = mysql_db_query($dbname,$sql) or die("ไม่สามารถ query ข้อมูลได้");
$images = mysql_fetch_array($result);
echo $images['image']; //กำหนดชื่อ Field ที่จะแสดง
?>
Date : 2011-08-06 14:42:27 By : tormam
 


 

No. 284



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ภาพไม่ออกซักที ที่ host
Date : 2011-08-06 19:14:48 By : tormam
 


 

No. 285



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

โค้ดนี้ จะให้มันดึงภาพจาก ฐานข้อมูลออกมา ต้องทำไงครับ ตอนเราอัพรูปลงไปแล้วให้มันอยู่หน้าเว็บ พอมีอีกรูปอัพมาใหม่ให้มาแสดงอี ส่วนรูปแรกก็ให้ อยู่ถัดไป เรื่อยๆ หน้าไหน อยู่ได้ 20รูป พอรูปที่ 21 เข้า รูปที่ 1 ก็ไม่แสดง
----------------------------------------------------------------------------------------------------------------------------

<?php
// Include คลาส class.upload.php เข้ามา เพื่อจัดการรูปภาพ
require_once('class/class.upload.php') ;

// ส่วนกำหนดการเชื่อมต่อฐานข้อมูล
$hostname_connection = "localhost";
$database_connection = "tukata";
$username_connection = "root";
$password_connection = "root";
$connection = mysql_pconnect($hostname_connection, $username_connection, $password_connection)
or trigger_error(mysql_error(),E_USER_ERROR);
mysql_query( "SET NAMES UTF8" ) ;


// ถ้าหากหน้านี้ถูกเรียก เพราะการ submit form
// ประโยคนี้จะเป็นจริงกรณีเดียวก็ด้วยการ submit form
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {

// เริ่มต้นใช้งาน class.upload.php ด้วยการสร้าง instant จากคลาส
$upload_image = new upload($_FILES['image_name']) ; // $_FILES['image_name'] ชื่อของช่องที่ให้เลือกไฟล์เพื่ออัปโหลด

// ถ้าหากมีภาพถูกอัปโหลดมาจริง
if ( $upload_image->uploaded ) {

// ย่อขนาดภาพให้เล็กลงหน่อย โดยยึดขนาดภาพตามความกว้าง ความสูงให้คำณวนอัตโนมัติ
// ถ้าหากไม่ต้องการย่อขนาดภาพ ก็ลบ 3 บรรทัดด้านล่างทิ้งไปได้เลย
$upload_image->image_resize = true ; // อนุญาติให้ย่อภาพได้
$upload_image->image_x = 400 ; // กำหนดความกว้างภาพเท่ากับ 400 pixel
$upload_image->image_ratio_y = true; // ให้คำณวนความสูงอัตโนมัติ

$upload_image->process( "picture" ); // เก็บภาพไว้ในโฟลเดอร์ที่ต้องการ *** โฟลเดอร์ต้องมี permission 0777

// ถ้าหากว่าการจัดเก็บรูปภาพไม่มีปัญหา เก็บชื่อภาพไว้ในตัวแปร เพื่อเอาไปเก็บในฐานข้อมูลต่อไป
if ( $upload_image->processed ) {

$image_name = $upload_image->file_dst_name ; // ชื่อไฟล์หลังกระบวนการเก็บ จะอยู่ที่ file_dst_name
$upload_image->clean(); // คืนค่าหน่วยความจำ

// เก็บชื่อภาพลงฐานข้อมูล
$insertSQL = sprintf("INSERT INTO product (Picture) VALUES ( '%s' )", $image_name );
echo $insertSQL ;
mysql_select_db($database_connection, $connection);
$Result1 = mysql_query($insertSQL, $connection) or die(mysql_error());


}// END if ( $upload_image->processed )

}//END if ( $upload_image->uploaded )


}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Upload Image To Database</title>
</head>

<body>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<p>Image_name
<input name="image_name" type="file" id="image_name" size="40" />
</p>
<p>
<input type="submit" value="Upload" />
<input type="hidden" name="MM_insert" value="form1" />
</p>
</form>
</body>

</html>
Date : 2011-08-06 19:19:57 By : tormam
 


 

No. 286



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

editproduct.php ของเว็ปที่แจก ทำไม ตอนอัพลง host มันไม่เข้าอะครับ แก้หลายแบบละ งง มากๆ

นี้โค้ด

<?
ob_start();
session_start();
if($_SESSION["adminlogin"]=="")
{
header('location:index.php');
exit();
}
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล
require_once('../connect/connect.php');
require_once('../connect/function.php');

//=========== กรณีมีการแก้ไขรายการสินค้า
if($_GET["Action"]=="Save")
{
//=========== บันทึกข้อมูลสินค้า
$sql_up = "update product set ProductCode='$_POST[txtProductCode]',ProductName='$_POST[txtProductName]',Description='$_POST[txtDescription]',Price='$_POST[txtPrice]',PriceNormal='$_POST[txtPriceNormal]',PriceSend='$_POST[txtPriceSend]',Stock='$_POST[txtStock]',Promotion='$_POST[rdoPromotion]',New='$_POST[rdoNew]' where ProductID='$_GET[ProductID]'";
$dbquery_up = mysql_query($sql_up);
//echo $sql_up;
// exit();
//=========== แก้ไขไฟล์เล็ก
if(!empty($file))
{
$path="../picture";
//=========== อัพโหลตไฟลืเล็ก
@copy( $file ,"$path/$file_name");
$sql_update = "update product set Picture='$file_name' where ProductID='$_GET[ProductID]'";
$dbquery_update = mysql_query($sql_update);
}


echo"<script language='JavaScript'>";
echo"alert('แก้ไขข้อมูลเรียบร้อยแล้ว');";
echo"window.location='editproduct.php?ProductID=$_GET[ProductID]';";
echo"</script>";
}

?>
<html>
<title>..:: ระบบจัดการฐานข้อมูล ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<script language="JavaScript" src="editor.js"></script>
<div align="center"><br>
<?
//=========== อ่านว่าคือสินค้าชนิดใด
$result=select("product","where 1=1 and ProductID='".$_GET["ProductID"]."'");
if(!$result)
{
header("location:product.php");
}

?>
<table cellspacing=1 cellpadding=4 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="100%" bgcolor="#FFFFFF"> <div align="center"></div>
<table cellspacing=1 cellpadding=4 width="100%" border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="35%" bgcolor="#FFFFFF"> <div align="left"><b><img src="../image/allrowto.gif" width="11" height="11" align="absbottom">
แก้ไขรายการสินค้า</b></div></td>
<td width="22%" align=middle bgcolor="#FFFFFF"> <div align="left">
</div></td>
<td width="43%" bgcolor="#FFFFFF"> <div align="right"><a href="product.php?CatID=<?=$result["CatID"];?>">กลับไป</a></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</div>

<form name="frm<?=$i;?>" method="post" action="<?=$_SERVER['PHP_SELF'];?>?ProductID=<?=$_GET["ProductID"];?>&Action=Save" enctype="multipart/form-data" onSubmit="return checkvalue()">
<table cellspacing=1 cellpadding=3 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="31" bgcolor="#FFFFFF"> <script language="Javascript1.2"><!-- // load htmlarea
_editor_url = ""; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
<script language="JavaScript">
function checkvalue()
{

if(parseInt(document.all.txtPrice.value) >= parseInt(document.all.txtPriceNormal.value))
{
alert('ราคาพิเศษจะต้องน้อยกว่ากว่าราคาปกติ');
document.all.txtPrice.focus();
return false;
}else
{ return true; }

}
</script>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="18%">&nbsp;</td>
<td width="82%">&nbsp;</td>
</tr>
<tr>
<td valign="top">รหัสสินค้า <font color="#FF0000">** </font></td>
<td><input name="txtProductCode" type="text" class="txtbox" id="txtProductCode" value="<?=$result["ProductCode"];?>" maxlength="20" readonly="true">
</td>
</tr>
<tr>
<td valign="top">สินค้าโปรโมชั่น <font color="#FF0000">** </font></td>
<td><input name="rdoPromotion" type="radio" value="Yes" <? if($result["Promotion"]=="Yes"){?>checked<?}?>>
ใช่
<input type="radio" name="rdoPromotion" value="No" <? if($result["Promotion"]=="No"){?>checked<?}?>>
ไม่ใช่</td>
</tr>
<tr>
<td valign="top">สินค้าใหม่ <font color="#FF0000">** </font></td>
<td><input name="rdoNew" type="radio" value="Yes" <? if($result["New"]=="Yes"){?>checked<?}?>>
ใช่
<input type="radio" name="rdoNew" value="No" <? if($result["New"]=="No"){?>checked<?}?>>
ไม่ใช่</td>
</tr>
<tr>
<td valign="top">ชื่อสินค้า <font color="#FF0000">** </font></td>
<td><input name="txtProductName" type="text" class="txtbox" id="txtProductName" style="width:550" value="<?=$result["ProductName"];?>" maxlength="100"></td>
</tr>
<tr>
<td valign="top">ราคาปกติ <font color="#FF0000">** </font></td>
<td><input name="txtPriceNormal" type="text" class="txtbox" id="txtPriceNormal" value="<?=$result["PriceNormal"];?>" size="10" maxlength="20">
บาท </td>
</tr>
<tr>
<td valign="top">ราคาพิเศษ <font color="#FF0000">** </font></td>
<td><input name="txtPrice" type="text" class="txtbox" id="txtPrice" value="<?=$result["Price"];?>" size="10" maxlength="20">
บาท </td>
</tr>
<tr>
<td valign="top">ค่าจัดส่ง</td>
<td><input name="txtPriceSend" type="text" class="txtbox" id="txtPriceSend" value="<?=$result["PriceSend"];?>" size="10" maxlength="20">
บาท </td>
</tr>
<tr>
<td valign="top">สำนวนสต็อก <font color="#FF0000">** </font></td>
<td><input name="txtStock" type="text" class="txtbox" id="txtStock" value="<?=$result["Stock"];?>" size="10" maxlength="20"></td>
</tr>
<tr>
<td valign="top">รูปภาพ <font color="#FF0000">** </font></td>
<td><img src="../picture/<?=$result["Picture"];?>" /></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td><input name="file" type="file" class="txtbox" id="file"></td>
</tr>
<tr>
<td valign="top">รายละเอียด <font color="#FF0000">** </font></td>
<td><textarea name="txtDescription" cols="40" rows="10" class="txtbox" id="txtDescription" style="width:550; height:450"><?=$result["Description"];?></textarea>
<script language="javascript1.2">
editor_generate('txtDescription');
</script> &nbsp;</td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><input name="Submit" type="submit" class="button" value="บันทึก">
<input name="Cancel" type="button" class="button" id="Cancel" value="ยกเลิก" onClick="window.location='product.php?CatID=<?=$result["CatID"];?>';"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>

</tbody>
</table>
<table cellspacing=0 cellpadding=4 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="100%" bgcolor="#FFFFFF"> <div align="center"></div>
<table cellspacing=1 cellpadding=4 width="100%" border=0 align="center" height="10">
<tbody>
<tr bgcolor=#e5e5e5>
<td width="35%" bgcolor="#FFFFFF"> <div align="left"></div></td>
<td width="22%" align=middle bgcolor="#FFFFFF"> <div align="left">
</div></td>
<td width="43%" bgcolor="#FFFFFF"> <div align="right"><a href="product.php?CatID=<?=$result["CatID"];?>">กลับไป</a></div></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</form>
Date : 2011-08-07 10:17:34 By : tormam
 


 

No. 287

Guest


ขอบคุณครับ
Date : 2011-08-09 22:02:59 By : Es
 


 

No. 288

Guest


ขอบคุณคร๊าบบบบ
Date : 2011-08-12 00:50:52 By : vision
 


 

No. 289

Guest


thank ครับ
Date : 2011-08-16 22:17:55 By : wat
 


 

No. 290



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับ ผมขอถามเป็นแนวทางหน่อยครับว่า

ผมมีระบบสมัครสมาชิกอยู่แล้ว และมีคนสมัครไปบ้างแล้ว หากต้องการเอาระบบตะกร้าสินค้าเพิ่มเข้าไปผมต้องทำไงบ้างครับ ขยายความประมาณว่า สมาชิก login เข้าระบบเดิมของผมแล้วสามารถใช้งานตะกร้าสินค้าของพี่ได้น่ะครับ

ขอบคุณมากครับ
Date : 2011-08-17 09:41:45 By : โฟล์ค
 


 

No. 291

Guest


แล้วเรื่องอัพรูปขึ้นเซฟเวอร์ไม่ได้อ่ะ พากันแก้ได้แล้วหราคับ เห็นเงียบไปกันเลย ถ้าใครแก้ได้แล้ว ช่วยมาpost บอกทีสิคับ !
Date : 2011-08-18 11:33:21 By : ชายเก่ง
 


 

No. 292



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ตอนนี้แก้ได้ แต่ต้องเอารูปไปไว้ในโฟรเดอร์ของเซฟ ก่อนอะครับ ถึงจะอัพได้ https://www.thaicreate.com/php/forum/064968.html#14
ตามลิงค์นี้ไปดูได้ครับ
Date : 2011-08-19 18:56:30 By : tormam
 


 

No. 293

Guest


ลองดูก่อน
Date : 2011-08-22 22:14:38 By : ked
 


 

No. 294

Guest


ตรงระบบสมัครสมาชิก ยังขัดอยู่น่ะคับ คำสั่งตรวจสอบค่าว่างอ่ะ ดูให้น่อยคับ
Date : 2011-08-22 22:30:42 By : ติดขัด
 


 

No. 295

Guest


http://122.155.5.147/~zp3126/register.php
มีปัญหาตรงสมัครสมาชิกอ่ะคับ ใครเทพใครเก่งช่วยดูให้น่อยครับ form: register.php หรือส่งไฟล์ที่แก้แล้ว ทางเมลน่อยคับ จะเป็นพระคุณอย่างสูงปวดหัวกับจุดนี้มากแล้ว [email protected] จะเปิดร้านก็เปิดไม่ได้สักที
Date : 2011-08-22 22:53:47 By : ติดขัดหัวปวด
 


 

No. 296

Guest


ขอบคุณมากมายครับ
Date : 2011-08-22 23:50:55 By : aaa
 


 

No. 297

Guest



Date : 2011-08-25 23:40:46 By : อิอิ
 


 

No. 298



โพสกระทู้ ( 81 )
บทความ ( 0 )



สถานะออฟไลน์


ทำไมผมเพิ่มข้อมูล/แก้ไข ลงฐานข้อมูล ที่ใช้ตัวอักษรภาษาไทยไม่ได้ครับ

แต่เพิ่มภาษาอังกฤษได้ครับ code เพิ่มก็ถูกน่ะ เป็นเพราะอะไรเอย รันในเครื่องครับ
Date : 2011-09-09 11:45:12 By : kasuya191
 


 

No. 299

Guest


ทุกอย่างแก้ได้จะหมดแล้ว ติดตรงสมัครสมาชิก แงๆๆ ช่วยทีครับ ขอตัวแก้ไขน่อย ใครติดตรงไหนเอามาแลกกันคับ ขอขอบคุณเจ้าของโปรเจค!
Date : 2011-09-09 20:49:05 By : เด็กบ้านนอกคอกนา
 


 

No. 300

Guest


ขอบคุณครับ
Date : 2011-09-19 00:58:54 By : -
 


 

No. 301

Guest


ช่วยด้วยคับ เวลาอัฟขึ้น Server แล้วไม่เห็นรูปภาพในหน้าสินค้า
-----------------ด่วนคับ----------------------
Date : 2011-09-22 01:17:42 By : p
 


 

No. 302



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


อับรูปลง เซิฟเวอร์ ได้ไม่ได้บอกกันด้วยนะครับ

อันดับแรกตั้งค่าโฟลเดอร์เก็บรูปใน FTP เป็น permission 777

editproduct.php

Code (PHP)
<?
ob_start();
session_start();
if($_SESSION["adminlogin"]=="")
{
header('location:index.php');
exit();
}
$file_pic=$_FILES['file_pic']['tmp_name'];
$file_pic_name=$_FILES['file_pic']['name'];
$file_pic_size=$_FILES['file_pic']['size'];
$file_pic_type=$_FILES['file_pic']['type'];
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล 
require_once('../connect/connect.php');
require_once('../connect/function.php');

//=========== กรณีมีการแก้ไขรายการสินค้า
                       if($_GET["Action"]=="Save")
	                   {
						   //===========  บันทึกข้อมูลสินค้า
	                  $sql_up = "update product set ProductCode='$_POST[txtProductCode]',ProductName='$_POST[txtProductName]',Description='$_POST[txtDescription]',Price='$_POST[txtPrice]',PriceNormal='$_POST[txtPriceNormal]',PriceSend='$_POST[txtPriceSend]',Stock='$_POST[txtStock]',Promotion='$_POST[rdoPromotion]',New='$_POST[rdoNew]' where ProductID='$_GET[ProductID]'";
                      $dbquery_up = mysql_query($sql_up);
					  //echo $sql_up;
					//  exit();
					//===========  แก้ไขไฟล์เล็ก
					                   	if(!empty($file_pic))
{
	$array_last=explode(".",$file_pic_name);
	$c=count($array_last)-1;
	$lastname=strtolower($array_last[$c]);

	if($lastname=="gif" or $lastname=="jpg" or $lastname=="jpeg"or $lastname=="png")
	{
		$sql2="select max(ProductID) from product";
		$result2=mysql_db_query($db,$sql2);
		$row=mysql_fetch_row($result2);
		$file_name=$row[0].".".$lastname;
		copy($file_pic,"../picture/".$file_name);
		$sql3="update product set Picture='$file_name' where ProductID='$row[0]'";
		$result3=mysql_db_query($db,$sql3);
	}
	unlink($file_pic);
}	
										 
					  
									echo"<script language='JavaScript'>";
									echo"alert('แก้ไขข้อมูลเรียบร้อยแล้ว');";
									echo"window.location='editproduct.php?ProductID=$_GET[ProductID]';";
									echo"</script>";					  
			 		  }
					  
?>
<html>
<title>..:: ระบบจัดการฐานข้อมูล ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<script language="JavaScript" src="editor.js"></script>
<div align="center"><br>
<?
//===========  อ่านว่าคือสินค้าชนิดใด
$result=select("product","where 1=1 and ProductID='".$_GET["ProductID"]."'");
if(!$result)
{
header("location:product.php");
}

?>
  <table cellspacing=1 cellpadding=4 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
    <tbody>
      <tr bgcolor=#e5e5e5> 
        <td width="100%" bgcolor="#FFFFFF"> <div align="center"></div>
          <table cellspacing=1 cellpadding=4 width="100%" border=0 align="center" height="10">
            <tbody>
              <tr bgcolor=#e5e5e5> 
                <td width="35%" bgcolor="#FFFFFF"> <div align="left"><b> 
                แก้ไขรายการสินค้า</b></div></td>
                <td width="22%" align=middle bgcolor="#FFFFFF"> <div align="left"> 
                  </div></td>
                <td width="43%" bgcolor="#FFFFFF"> <div align="right"><a href="product.php?CatID=<?=$result["CatID"];?>">กลับไป</a></div></td>
              </tr>
            </tbody>
          </table></td>
      </tr>
    </tbody>
  </table>
</div>

<form name="frm<?=$i;?>" method="post" action="<?=$_SERVER['PHP_SELF'];?>?ProductID=<?=$_GET["ProductID"];?>&Action=Save" enctype="multipart/form-data" onSubmit="return checkvalue()">
  <table cellspacing=1 cellpadding=3 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
    <tbody>
      <tr bgcolor=#e5e5e5> 
        <td width="31" bgcolor="#FFFFFF"> <script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script> 
<script language="JavaScript">
function checkvalue()
{

		if(parseInt(document.all.txtPrice.value) >= parseInt(document.all.txtPriceNormal.value))
		{
		alert('ราคาพิเศษจะต้องน้อยกว่ากว่าราคาปกติ');
		document.all.txtPrice.focus();
		return false;
		}else
		{ return true; }

}
</script>
          <table width="100%" border="0" cellspacing="2" cellpadding="2">
            <tr> 
              <td width="18%">&nbsp;</td>
              <td width="82%">&nbsp;</td>
            </tr>
            <tr> 
              <td valign="top" align="right">รหัสสินค้า<font color="#FF0000"> : </font></td>
              <td><input name="txtProductCode" type="text" class="txtbox" id="txtProductCode" value="<?=$result["ProductCode"];?>" maxlength="20" readonly="true"> 
              </td>
            </tr>
            <tr> 
              <td valign="top" align="right">สินค้าโปรโมชั่น<font color="#FF0000"> : </font></td>
              <td><input name="rdoPromotion" type="radio" value="Yes" <? if($result["Promotion"]=="Yes"){?>checked<?}?>>
                ใช่ 
                <input type="radio" name="rdoPromotion" value="No" <? if($result["Promotion"]=="No"){?>checked<?}?>>
                ไม่ใช่</td>
            </tr>
            <tr> 
              <td valign="top" align="right">สินค้าใหม่<font color="#FF0000"> : </font></td>
              <td><input name="rdoNew" type="radio" value="Yes" <? if($result["New"]=="Yes"){?>checked<?}?>>
                ใช่ 
                <input type="radio" name="rdoNew" value="No" <? if($result["New"]=="No"){?>checked<?}?>>
                ไม่ใช่</td>
            </tr>
            <tr> 
              <td valign="top" align="right">ชื่อสินค้า <font color="#FF0000"> : </font></td>
              <td><input name="txtProductName" type="text" class="txtbox" id="txtProductName" style="width:250" value="<?=$result["ProductName"];?>" maxlength="200"></td>
            </tr>
            <tr> 
              <td valign="top" align="right">ราคา <font color="#FF0000"> : </font></td>
              <td><input name="txtPrice" type="text" class="txtbox" id="txtPrice" value="<?=$result["Price"];?>" size="10" maxlength="20">
                บาท </td>
            </tr>
            <tr>
              <td valign="top" align="right">ค่าจัดส่ง<font color="#FF0000"> : </font></td>
              <td><input name="txtPriceSend" type="text" class="txtbox" id="txtPriceSend" value="<?=$result["PriceSend"];?>" size="10" maxlength="20">
                บาท </td>
            </tr>
            <tr> 
              <td valign="top" align="right">สำนวนสต็อก <font color="#FF0000"> : </font></td>
              <td><input name="txtStock" type="text" class="txtbox" id="txtStock" value="<?=$result["Stock"];?>" size="10" maxlength="20"></td>
            </tr>
            <tr> 
              <td valign="top" align="right">รูปภาพ <font color="#FF0000"> : </font></td>
              <td><img src="../picture/<?=$result["Picture"];?>" /></td>
            </tr>
            <tr> 
              <td valign="top" align="right">&nbsp;</td>
              <td><input name="file_pic"type="file"/>
                  <input name="MAX_FILE_SIZE"type="hidden"value="100000"/></td>
            </tr>
            <tr> 
              <td valign="top" align="right">รายละเอียด<font color="#FF0000"> : </font></td>
              <td><textarea name="txtDescription" cols="40" rows="10" class="txtbox" id="txtDescription"><?=$result["Description"];?></textarea> 
                <script language="javascript1.2">
editor_generate('txtDescription');
</script> &nbsp;</td>
            </tr>
            <tr> 
              <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
              <td><input name="Submit" type="submit" class="button" value="บันทึก"> 
                <input name="Cancel" type="button" class="button" id="Cancel" value="ยกเลิก" onClick="window.location='product.php?CatID=<?=$result["CatID"];?>';"></td>
            </tr>
            <tr> 
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr> 
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table></td>
      </tr>
  
    </tbody>
  </table>
  <table cellspacing=0 cellpadding=4 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
    <tbody>
      <tr bgcolor=#e5e5e5> 
        <td width="100%" bgcolor="#FFFFFF"> <div align="center"></div>
          <table cellspacing=1 cellpadding=4 width="100%" border=0 align="center" height="10">
            <tbody>
              <tr bgcolor=#e5e5e5> 
                <td width="35%" bgcolor="#FFFFFF"> <div align="left"></div></td>
                <td width="22%" align=middle bgcolor="#FFFFFF"> <div align="left"> 
                  </div></td>
                <td width="43%" bgcolor="#FFFFFF"> <div align="right"><a href="product.php?CatID=<?=$result["CatID"];?>">กลับไป</a></div></td>
              </tr>
            </tbody>
          </table></td>
      </tr>
    </tbody>
  </table>
</form>



ประวัติการแก้ไข
2011-09-22 05:53:50
2011-09-22 05:55:13
Date : 2011-09-22 05:47:06 By : manaru
 


 

No. 303

Guest


อยากถาม โค๊ด แบ่งหน้าอะครับ กด next ไม่ได้ครับ
Date : 2011-09-22 05:55:22 By : tokla
 


 

No. 304



โพสกระทู้ ( 254 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

หน้าไหนครับ ขึ้น โฮส หรอ
Date : 2011-09-22 17:22:38 By : tormam
 


 

No. 305



โพสกระทู้ ( 1,025 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์
Twitter Facebook Hi5 Blogger

ทำ SS มาให้ดู

Screen shot
Date : 2011-09-22 18:10:49 By : adaaugusta
 


 

No. 306



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากครับ
Date : 2011-09-22 18:32:40 By : ADOGKiNG
 


 

No. 307

Guest


คือผมอยากทำโค้ดไปดัดแปลงใช้กับ Oracle ต้องเปลี่ยนยังไงบ้างอ่ะครับ
ไปไม่ถูกเลย
Date : 2011-09-28 09:53:34 By : Hexer
 


 

No. 308



โพสกระทู้ ( 13 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ
Date : 2011-10-01 07:34:18 By : ZerzaCub
 


 

No. 309

Guest


มันไม่ขึ้นภาษาไทยอะครับ
Date : 2011-10-03 22:34:10 By : tonkar
 


 

No. 310



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

Quote:
มันไม่ขึ้นภาษาไทยอะครับ


ได้ตอบไว้แล้วครับ
Date : 2011-10-04 06:23:16 By : webmaster
 


 

No. 311



โพสกระทู้ ( 2 )
บทความ ( 0 )



สถานะออฟไลน์


ถ้าเราจะทำสคริปการเช็คค่าสินค้าว่าตอนนี้สินค้า
ชิ้นนี้ เหลือ 0 แล้วไม่สามารถสั่งซื้อได้
โดยใช้ค่าจากฐานข้อมูลเมื่อสินค้าชิ้นนั้นเหลือ 0
ทำยังไงครับหรือใครมีโค๊ดบ้างขอหน่อยครับ
Date : 2011-10-07 14:00:45 By : manaru
 


 

No. 312

Guest


ช่วยด้วยค่ะ อัฟขึ้น host แล้วรูปไม่ขึ้น ทีแรกนึกว่าพาธผิด แต่ตรวจสอบดูแล้วปรากฏว่าถูก ลองแก้ด้วยวิธีที่แนะนำมาหมดแล้วด้วยคะ ก็ยังไม่ขึ้นอยู่ดี ไม่รู้จะทำไงแล้วคะ ใครมีวิธีอะไรอีกไหมคะ ขอบคุณล่วงหน้าคะ
Date : 2011-10-12 14:17:19 By : โปรแกรมเมอร์กิ๊กก๊อก
 


 

No. 313

Guest


กดปุ่ม next ไม่ได้อ่ะคะ แก้ยังไงคะ
Date : 2011-10-20 08:36:29 By : โบว์
 


 

No. 314

Guest


อยากได้โค้ดเพิ่มหมวดหมู่ย่อยของสินค้าอ่ะคะ
Date : 2011-11-09 09:06:35 By : abc
 


 

No. 315



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


เข้าขอบคุณมากครับ
Date : 2011-11-17 08:24:55 By : folkeza
 


 

No. 316



โพสกระทู้ ( 27 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณครับ
Date : 2011-11-23 12:43:52 By : reekoong
 


 

No. 317



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุนมากนะฮาฟ
Date : 2011-11-24 01:42:20 By : tomzer
 


 

No. 318



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


อยากได้มานานแล้ว ขอบคุณมากนะครับ
Date : 2011-11-24 13:15:19 By : sabudchor11
 


 

No. 319



โพสกระทู้ ( 32 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณค่ะ
Date : 2011-11-24 13:27:49 By : Maiiez
 


 

No. 320



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


มีปัญหาที่ไฟล์ register.php น่ะครับ เวลาสมัครสมาชิกแล้วไม่ตรวจสอบรูปแบบอีเมล์
ยังไงรบกวนผู้เชี่ยวชาญช่วยดูให้ทีนะครับ
Code (PHP)
<?
ob_start();
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล 
session_start();
require("connect/connect.php");
require("connect/function.php");

//============ อ่านอีเมล์
if($_SESSION["strEmail"] != "")
{
header("location:.");
}
//============ ถ้าเลือกสมัครสมาชิก
if($_GET["action"]=="Register")
{
			//============ ตรวจสอบอีเมล์ป้องกันค่าว่าง
			$result=select("member","where 1 and (Email='".$_POST["txtEmail"]."'  and Email != '".$_SESSION["strEmail"]."' )");
			if($result)
			{
						echo "<script language=\"JavaScript\">";
						echo "alert('อีเมล์นี้มีคนใช้แล้ว');";
						echo "</script>";	
			}
			else
			{
						//============  บันทึกข้อมูลสมาชิก
					  $sql = "insert into member (Email,Password,Name,LastName,Gender,Address,Province,ZipCode,Tel,Fax) Values ('$_POST[txtEmail]','$_POST[txtPass]','$_POST[txtName]','$_POST[txtLastName]','$_POST[rdoGender]','$_POST[txtAddress]','$_POST[txtProvince]','$_POST[txtZipCode]','$_POST[txtTel]','$_POST[txtFax]')";
					  $dbquery = mysql_query($sql);
					  
					  $_SESSION["strEmail"]=$_POST["txtEmail"];
					  $_SESSION["strPassword"]=$_POST["txtPass"];
					  session_write_close();
					  
					  header("location:finish.php");
			}
			
}

?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<title>::: CROCHET-PATTERN.COM :::</title>
<script language="JavaScript">
function CheckEmail() {
							ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPaSDFGHJKLzXCVBNM";
									for(i=0; i < e.length ;i++){
									if(ok.indexOf(e.charat(i))<0){ 
									return (false);
									}	
								} 
								if (document.images) {
								re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
								re_two = /^.+\@(\[?)[a-za-z0-9\-\.]+\.([a-za-z]{2,4}|[0-9]{1,3})(\]?)$/;
										if (!e.match(re) && e.match(re_two)) {
										return (-1);		
										} 
								}
						}

						  function checkvalue()
						  {
						  // ============ ตรวจสอบค่าว่าง
								  if(document.frmRegister.txtEmail.value=="")
								  {
								  alert('กรุณากรอก อีเมล์ ');
								  document.frmRegister.txtEmail.focus();
								  return false;
								  }
									 
									 //------------------
									  if(!CheckEmail(document.frmRegister.txtEmail.value))
								  {
								  alert('กรุณากรอก อีเมล์ให้ถูกต้อง ');
								  document.frmRegister.txtEmail.focus();
								  return false;
								  }
									 //------------
									 
								  if(document.frmRegister.txtEmailCon.value=="")
								  {
								  alert('กรุณากรอก ยืนยันอีเมล์ ');
								  document.frmRegister.txtEmailCon.focus();
								  return false;
								  }
								  
								  if(document.frmRegister.txtEmail.value != document.frmRegister.txtEmailCon.value)
								  {
								  alert('กรุณายืนยันอีเมล์ให้ตรงกัน');
								  document.frmRegister.txtEmail.focus();
								  return false;
								  }
								  
								  if(document.frmRegister.txtPass.value=="")
								  {
								  alert('กรุณากรอก รหัสผ่าน ');
								  document.frmRegister.txtPass.focus();
								  return false;
								  }
								  
								  if(document.frmRegister.txtPassCon.value=="")
								  {
								  alert('กรุณากรอก ยืนยันรหัสผ่าน ');
								  document.frmRegister.txtPassCon.focus();
								  return false;
								  }
								  
								  if(document.frmRegister.txtPass.value != document.frmRegister.txtPassCon.value)
								  {
								  alert('กรุณายืนยันรหัสผ่านให้ตรงกัน');
								  document.frmRegister.txtPassCon.focus();
								  return false;
								  }
								  
								  if(document.frmRegister.txtName.value=="")
								  {
								  alert('กรุณากรอก ชื่อ ');
								  document.frmRegister.txtName.focus();
								  return false;
								  }
								  
								  if(document.frmRegister.txtLastName.value=="")
								  {
								  alert('กรุณากรอก นามสกุล');
								  document.frmRegister.txtLastName.focus();
								  return false;
								  }								  
								  								  
								  if(document.frmRegister.txtAddress.value=="")
								  {
								  alert('กรุณากรอก ที่อยู่ ');
								  document.frmRegister.txtAddress.focus();
								  return false;
								  }
								  
								  

								  if(document.frmRegister.txtProvince.value=="")
								  {
								  alert('กรุณากรอก จังหวัด ');
								  document.frmRegister.txtProvince.focus();
								  return false;
								  }								  
								  
								  
								  if(document.frmRegister.txtZipCode.value=="")
								  {
								  alert('กรุณากรอก รหัสไปรษณีย์ ');
								  document.frmRegister.txtZipCode.focus();
								  return false;
								  }
								  								  
								  if(document.frmRegister.txtTel.value=="")
								  {
								  alert('กรุณากรอก หมายเลขโทรศัพท์ ');
								  document.frmRegister.txtTel.focus();
								  return false;
								  }

						  }
</script>
<style>
	.bt { font-size: 10pt; background-color: # A0A0A4; color: #036; }
	.line_dot { border-top: dotted 1px #00C; }
	.pd_title{font:bold 11pt;color:#489100;padding:3px;background-color:#D4FF55;}
</style>
<link href="css/styles.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr> 
    <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td><?php require_once('head.php'); ?></td>
        </tr>
        <tr> 
          <td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#f2f2f6" bgcolor="#FFFFFF">
              <tr> 
                <td width="100%" valign="top" align="center"> 
                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <!--DWLayoutTable-->
                    <tr> 
                      <td width="100%" height="310" valign="top">

                        <form name="frmRegister" method="post" action="?action=Register"  onSubmit="return checkvalue()">
                          <table width="415" border="0" align="center">
                            <tr> 
                              <td><div align="left">
                                  <table width="418" height="22" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
                                    <tr> 
                                      <td width="8"> <img src="image/menu01.jpg" width="8" height="22" alt=""></td>
                                      <td width="389" background="image/menu02.jpg"><div align="center"><strong>สมัครสมาชิก 
                                          </strong></div></td>
                                      <td width="9"> <img src="image/menu03.jpg" width="9" height="22" alt=""></td>
                                    </tr>
                                  </table>
                                </div></td>
                            </tr>
                            <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                              <td><div align="center" >
                              <MARQUEE behavior=alternate direction=left scrollAmount=3 width="4%">
                              <font face=Webdings>4</font></MARQUEE><MARQUEE scrollAmount=1 direction=left width="2%">| | | | | |</MARQUEE>
                              <strong>หมายเหตุ : กรุณากรอกข้อมูลให้ครบ (<font color="#FF0000">*</font>)</strong>
                              <MARQUEE scrollAmount=1 direction=right width="2%">| | | | | |</MARQUEE>
                              <MARQUEE behavior=alternate direction=right scrollAmount=3 width="4%"><font face=Webdings>3</font></MARQUEE>
                              </div>
                              </td>
                              <br>
                              <br>
                            </tr>
                            <tr> 
                              <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td width="9%" >&nbsp;</td>
                                    <td width="29%" id = "input">อีเมล์ :</td>
                                    <td width="62%" id = "input"><input name="txtEmail" type="text" class="txtbox" id="txtEmail"  maxlength="30" size="20" value="<?=$_POST["txtEmail"];?>" >                                      
                                    <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>ยืนยันอีเมล์ :</td>
                                    <td><input name="txtEmailCon" type="text" class="txtbox" id="txtEmailCon"  maxlength="30" size="20" value="<?=$_POST["txtEmailCon"];?>">
                                    <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>รหัสผ่าน :</td>
                                    <td><input name="txtPass" type="password" class="txtbox" id="txtPass"  size="20" maxlength="20" value="<?=$_POST["txtPass"];?>"> 
                                      <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>ยืนยันรหัสผ่าน :</td>
                                    <td><input name="txtPassCon" type="password" class="txtbox" id="txtPassCon"   size="20"  maxlength="20" value="<?=$_POST["txtPassCon"];?>"> 
                                      <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>ชื่อ :</td>
                                    <td><input name="txtName" type="text" class="txtbox" id="txtName" size="20" maxlength="20" value="<?=$_POST["txtName"];?>" >                                      
                                    <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>นามสกุล :</td>
                                    <td><font color="#FF0000">
                                      <input name="txtLastName" type="text" class="txtbox" id="txtLastName"  size="20" maxlength="30" value="<?=$_POST["txtLastName"];?>" >
                                    *</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>เพศ :</td>
                                    <td><input name="rdoGender" type="radio" value="M" checked>
                                      ชาย 
                                      <input type="radio" name="rdoGender" value="F">
                                      หญิง <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td valign="top">ที่อยู่ :</td>
                                    <td><textarea name="txtAddress" cols="30" rows="3" class="linkwhite" id="txtAddress"><?=$_POST["txtAddress"];?>
                                    </textarea>                                      <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>จังหวัด</td>
                                    <td><input name="txtProvince" type="text" class="txtbox" id="txtTel4" maxlength="255" value="<?=$_POST["txtProvince"];?>" > 
                                      <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>รหัสไปรษณีย์</td>
                                    <td><input name="txtZipCode" type="text" class="txtbox" id="txtTel3"  size="5" maxlength="5" value="<?=$_POST["txtZipCode"];?>" > 
                                      <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>หมายเลขโทรศัพท์</td>
                                    <td><input name="txtTel" type="text" class="txtbox" id="txtTel"  maxlength="255" value="<?=$_POST["txtTel"];?>" > 
                                      <font color="#FF0000">*</font></td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td>&nbsp;</td>
                                    <td>หมายเลขโทรสาร</td>
                                    <td><input name="txtFax" type="text" class="txtbox" id="txtFax"  maxlength="255" value="<?=$_POST["txtFax"];?>" ></td>
                                  </tr>
                                  <tr> 
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                  </tr>
                                  <tr onMouseOver="this.bgColor='#EEEEEE'" onMouseOut="this.bgColor='#FFFFFF'" bgcolor="#ffffff"> 
                                    <td colspan="3" align="center">
                                    <button type="button"  class ="bt" onclick=location='index.php' / >&lt;&lt; ย้อนกลับ</button>
                                    <input name="Submit"  type="submit" class="bt"  value='ตกลง'  onClick="return checkvalue()" /> 
                                    <input name="Reset"   type="reset" class="bt" id="Reset" value='ล้างข้อมูล'/>
                                    </td>
                                  </tr>
                                </table></td>
                            </tr>
                            <tr> 
                              <td width="378"><br>
                                <hr width="98%" color="#f2f2f6"></td>
                            </tr>
                          </table>
                        </form>
                        </td>
                    </tr>
                  </table></td> 
              </tr>
            </table>
            </td>
        </tr>
      </table>
      </td>
  </tr>
  <tr>
  <td>
  <?php require_once('down.php'); ?>
  </td>
  <tr>
</table>
</body>
</html>




ประวัติการแก้ไข
2011-11-28 01:41:45
2011-11-28 01:45:50
Date : 2011-11-28 01:40:53 By : kungarm
 


 

No. 321



โพสกระทู้ ( 61 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณมากมายค่ะ
Date : 2011-12-07 00:27:58 By : iibuu
 


 

No. 322

Guest


เช่นเดียวกัน ขอเอาไปดูหน่อย
Date : 2011-12-10 06:47:58 By : คั๊ก ๆ
 


 

No. 323

Guest


คือ พอดี หน้า แก้ไข สถานะสินค้า อะครับ ใช้ id admin แก้ ไข แล้วไม่ แก้อะ ครับ ผม ช่วยที่นะครับ แห๊ะ
Date : 2011-12-10 20:53:23 By : senorita
 


 

No. 324

Guest


อีกอย่างนะครับ แก้ไข หรือ เพิ่ม ข้อมูล ต่างๆ เป็น ภาษา ไทยก็ไม่ได้อะครับ
Date : 2011-12-10 21:07:02 By : senorita
 


 

No. 325



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ภาษาไทยมีวิธีแก้ไขอยู่ครับ ลองดูในความคิดเห็นเก่า ๆ ครับ
Date : 2011-12-11 18:36:56 By : webmaster
 


 

No. 326

Guest


เออคือ ผมจะบอกว่า เพิ่ม สินค้า / ประเภท สินค้า เป็นภาษาไทยแล้วไม่เข้า database ครับ แต่ พอเป็น ภาษาอังกฤษ แล้ว มันดันเข้า อะครับ

ผมเพิ่มcode ใน connet ให้เป็น uf8 แล้วอะครับ มันก็ไม่ได้อะ
Date : 2011-12-11 21:07:47 By : senorita
 


 

No. 327



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ลองดูครับ ไม่ยาก
Date : 2011-12-12 06:36:06 By : webmaster
 


 

No. 328

Guest


แก้ได้ละครับ ^^
Date : 2011-12-13 21:23:55 By : senorita
 


 

No. 329



โพสกระทู้ ( 11 )
บทความ ( 0 )



สถานะออฟไลน์


ระบบตะกร้าสินค้าจะนำไปใช้ใน fb ได้ยังไงคะ
Date : 2011-12-22 12:57:54 By : kornwipa
 


 

No. 330

Guest


ขอบคุณมาก ๆ ครับ มีประโยชน์มาก
Date : 2011-12-28 12:36:33 By : ืninja.it
 


 

No. 331



โพสกระทู้ ( 7 )
บทความ ( 0 )



สถานะออฟไลน์


Thank kabpom...
Date : 2011-12-28 14:30:51 By : sarawoot_you
 


 

No. 332



โพสกระทู้ ( 87 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

ขอบคุณค่ะ ^(. .)^
Date : 2011-12-29 07:39:25 By : MySeason22
 


 

No. 333



โพสกระทู้ ( 7 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ......
Date : 2012-02-03 09:22:00 By : macite
 


 

No. 334



โพสกระทู้ ( 7 )
บทความ ( 0 )



สถานะออฟไลน์


ช่วยหน่อยครับ Error แบบนี้ครับ งง มือใหม่ครับ

Fatal error: Cannot redeclare insert() (previously declared in C:\AppServ\www\new-neo\connect\function.php:4) in C:\AppServ\www\new-neo\connect\function.php on line 10

โค๊ด
<?
ob_start();
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล
session_start();
require("connect/connect.php");
require("connect/function.php");

//============ อ่านอีเมล์
if($_SESSION["strUsername"] != "")
{
header("location:.");
}
//============ ถ้าเลือกสมัครสมาชิก
if($_GET["action"]=="Register")
{
//============ อ่านว่าอีเมล์นี้เคยสมัครหรือยัง
$result=select("member","where 1 and userid='".$_POST["txtUsername"]."'");
if($result)
{

$_POST["txtUsername"]="";

echo "<script language=\"JavaScript\">";
echo "alert('User นี้มีคนใช้แล้ว');";
echo "</script>";
}
else
{
//============ บันทึกข้อมูลสมาชิก

$sql = "insert into member(userid,password,email,name,srename,sex,address,province,zipcode,tel,fax) Values ('$_POST[txtUsername]','$_POST[txtPassword]','$_POST[txtEmail]','$_POST[txtName]','$_POST[txtYouName]','$_POST[rdoGender]','$_POST[txtAddess]','$_POST[txtProvine]','$_POST[txtZipCode]','$_POST[txtTel]','$_POST[txtFax]')";
$dbquery = mysql_query($sql);

$_SESSION["strUsername"]=$_POST["strUsername"];
$_SESSION["strPassword"]=$_POST["txtPassword"];
session_write_close();

header("location:wfrmFinish.php");
}

}

?>

โค๊ด Function

//============== Function ในการแทรกข้อมูล ==============
function insert($field,$value,$table)
{
$sql = "INSERT INTO $table ($field) VaLUES ($value)";
//echo $sql;
$result= mysql_query($sql);
return $result;
}
Date : 2012-02-07 10:25:55 By : macite
 


 

No. 335

Guest


ขอขอบคุณจากใจเลยครับ เชื่อเลยว่าคนไทยดี ๆ แบบนี้ยังมีอีกเยอะคับ
Date : 2012-02-10 09:43:46 By : Kimyong
 


 

No. 336



โพสกระทู้ ( 104 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณครับ ๆ ๆ อย่าหาว่าผมอะไรนะ ผมหาที่โหลดไม่เจอ ช่วยทีสิ ๆ


ประวัติการแก้ไข
2012-02-11 20:34:14
Date : 2012-02-11 20:33:47 By : phonlawut
 


 

No. 337



โพสกระทู้ ( 1 )
บทความ ( 0 )



สถานะออฟไลน์


ไหนครับโค้ด? หรือไฟล์
Date : 2012-02-12 17:13:01 By : thaweechat
 


 

No. 338

Guest




Go to : PHP สร้างระบบตะกร้า Shopping Cart ด้วย Session และ Array
Date : 2012-02-14 21:51:02 By : je
 


 

No. 339



โพสกระทู้ ( 4 )
บทความ ( 0 )



สถานะออฟไลน์


thankyou

**download ตรงไหนครับ


ประวัติการแก้ไข
2012-02-15 01:54:38
Date : 2012-02-15 01:52:24 By : locktoon
 


 

No. 340



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


THankkk
Date : 2012-02-15 05:33:57 By : ther10
 


 

No. 341



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


Thank มากหลายๆเด้อ
Date : 2012-02-15 05:34:29 By : ther10
 


 

No. 342



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมากๆเลย
Date : 2012-02-15 05:35:38 By : ther10
 


 

No. 343



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


Old
Date : 2012-02-15 05:39:14 By : ther10
 


 

No. 344



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบพระคุณมากเลยนะครับ ที่เอามาแจก
Date : 2012-02-15 05:40:14 By : ther10
 


 

No. 345



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมาก Code (ASP)



000
Date : 2012-02-15 05:49:45 By : ther10
 


 

No. 346



โพสกระทู้ ( 9 )
บทความ ( 0 )



สถานะออฟไลน์




ขอบคุณมาก



000
Date : 2012-02-15 05:50:08 By : ther10
 


 

No. 347



โพสกระทู้ ( 4 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมาก
Date : 2012-02-15 05:54:05 By : theboss2
 


 

No. 348



โพสกระทู้ ( 4 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณมาก
Date : 2012-02-15 05:54:23 By : theboss2
 


 

No. 349



โพสกระทู้ ( 4 )
บทความ ( 0 )



สถานะออฟไลน์



Date : 2012-02-15 05:55:36 By : theboss2
 








Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 01
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่