two foreach connect |
If you follow the model-view-controller pattern, the database query should be in a model and the output should in a view.
You could do something like this: MODEL PHP Code: // Add & in front of $main VIEW PHP Code: foreach ($view_category_main as $main):
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Messages In This Thread |
two foreach connect - by Germanikus - 10-20-2020, 11:04 PM
RE: two foreach connect - by includebeer - 10-22-2020, 09:37 AM
|