ใช้ Group By ได้แล้ว แต่ข้อมูลอื่นๆ แสดงไม่ครบผมควรจะเขียนโค้ดอย่างไรครับ
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP Newbie
- Posts: 1
- Joined: 16/02/2016 4:34 pm
ใช้ Group By ได้แล้ว แต่ข้อมูลอื่นๆ แสดงไม่ครบผมควรจะเขียนโค้ดอย่างไรครับ
สวัสดีครับพี่ๆ รบกวนสอบถามครับ ผมทำบัญชีรายรับ-รายจ่าย โดยบันทึกรายการเป็นรายเดือน โดยในวันหนึ่งๆมีการบันทึกรายรับหลายครั้งจึงใช้การรวมจำนวนเงินแบบ Group By ค่าเงินก็รวมได้ปกติครับ แต่ข้อความที่เป็นรายละเอียดที่มาของเงินกลับแสดงเพียงแค่รายการแรกเพียงรายการเดียว โดยรายการหลังๆไม่แสดงข้อความเลย ไม่ทราบว่าผมควรแก้ปัญหานี้อย่างไรครับ
- Attachments
-
- Q.jpg (67.22 KiB) Viewed 1615 times
- tsukasaz
- PHP VIP Members
- Posts: 13067
- Joined: 18/04/2012 9:39 am
Re: ใช้ Group By ได้แล้ว แต่ข้อมูลอื่นๆ แสดงไม่ครบผมควรจะเขียนโค้ดอย่างไรครับ
ต้องการให้ Output เป็นยังไงครับ
The last bug isn't fixed until the last user is dead. (Sidney Markowitz, 1995)
-
- PHP Jr. Member
- Posts: 20
- Joined: 14/02/2016 12:16 am
- Contact:
Re: ใช้ Group By ได้แล้ว แต่ข้อมูลอื่นๆ แสดงไม่ครบผมควรจะเขียนโค้ดอย่างไรครับ
มีคำสั่งที่ใช้ไหมครับ
ระบบกันขโมย สัญญาณกันขโมย สำหรับบ้านความปลอดภัยเพื่อบ้านของคุณ
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Windows 10 สามารถใช้โปรแกรม PowerToys ได้แล้ว
by chatee supasand » 12/09/2019 6:12 pm » in Microsoft Office Knowledge & line & Etc - 0 Replies
- 436 Views
-
Last post by chatee supasand
12/09/2019 6:12 pm
-
-
-
ภาษาไทยสำหรับ Joomla 2.5 ดาวน์โหลด ได้แล้ว
by mindphp » 08/06/2012 12:42 am » in Free PHP Code Download script - 2 Replies
- 35735 Views
-
Last post by aomza037
12/07/2013 11:25 pm
-
-
-
Skype สามารถ ใช้ร่วมกับ OneDrive ได้แล้ว
by chatee supasand » 17/06/2019 11:49 am » in Microsoft Office Knowledge & line & Etc - 0 Replies
- 312 Views
-
Last post by chatee supasand
17/06/2019 11:49 am
-
-
-
Microsoft Edge สามารถใช้บน Windows 7,8,8.1 ได้แล้ว
by chatee supasand » 20/06/2019 11:44 am » in Microsoft Office Knowledge & line & Etc - 0 Replies
- 872 Views
-
Last post by chatee supasand
20/06/2019 11:44 am
-
-
-
มือถือ Android สามารถดูเปอร์เซ็นแบตเตอรี่ของหูฟัง Wireless ได้แล้ว
by jamepiyawat » 30/07/2019 6:51 pm » in Share Knowledge - 0 Replies
- 306 Views
-
Last post by jamepiyawat
30/07/2019 6:51 pm
-
-
-
Google Drive และ G-Suite สามารถแก้ไขไฟล์ PDF ผ่านแอพบนมือถือ ได้แล้ว
by jamepiyawat » 02/09/2019 5:18 pm » in Share Knowledge - 0 Replies
- 471 Views
-
Last post by jamepiyawat
02/09/2019 5:18 pm
-
Who is online
Users browsing this forum: No registered users and 13 guests