If mysql use Group By, then only can select 1 row of record but u still want to select multiple record, then cannot use Group By. Solution :
Split Left Join query into two queries. Select first table then foreach loop select another table.
Example at Yxin project : controllers/member/Order.php

-------------------------------
Cannot echo for debuging on common.php because it will show error "array or variable is not defined". Solution use if(!empty($data)) :

-------------------------------
Cannot update records WHERE id In (12,32,47). Solution is either add quote for string or remove quote for number :

----------------------------------
check carefully u are using getAllRec or getSelectedOneRow :
$childOfchildData = $this->getAllRec(
VS
$childOfchildData = $this->getSelectedOneRow(

If using getAllRec, then u need foreach loop to echo db record.
If using getSelectedOneRow, then no need foreach loop.

----------------------------------
What is correct syntax to add hour with php variable into date function in php?
----------------------------------
Error : Cannot reinitialise DataTable.
Solution : Delete "datatable" class from div or table so that it won't auto apply datatable. Then manually apply datatable by jquery :
----------------------------------


Posted by Zac1987 on 11 June, 2020
| | edit post
Share On Facebook ! Share On Google Buzz ! Add To Del.icio.us ! Share On Digg ! Share On Reddit ! Share On LinkedIn ! Post To Blogger ! Share On StumbleUpon !
Share On Friend Feed ! Share On MySpace ! Share On Yahoo Buzz ! Share On Google Reader ! Google Bookmark ! Send An Email ! Blog Feed !

0 comments






Enter your email address:

Subscribe in a reader

Follow zac1987 on Twitter

Donation

If you feel my website is informative and it is useful for you, please donate some money to support me or buy me a drink. I will continues this good works. Thank you.