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
0 comments