Display results in a table |
I have made a simple CRUD site, i have attached files, i would like to be able to display results in a table, is this possible? how would i apply this to my code?
any guidance will be helpful. Thank You
On your VIEW options_view.php page
PHP Code: <!DOCTYPE html>
Web Developer
rename the files:
- site_model.php to Site_model.php - site.php to Site.php In you view: anchor("site/delete/$row->Id", $row->title); to anchor("site/delete/".$row->id, $row->title); Is it Id or id? because in you view $row->Id and in you model it called id
Just to point out again what Paranight mentioned.
$row->Id and $row->id or site.php and Site.php will work on windows machines regardless, but on a real server these things are different and will cause problems. Pay attention to your spelling. Linux is case-sensitive regarding file names and in most case also for field and table names.
On the package it said needs Windows 7 or better. So I installed Linux.
(06-21-2017, 02:41 AM)rtenny Wrote: Just to point out again what Paranight mentioned. $row->Id and $row->id is not the same on a windows system too. |
Welcome Guest, Not a member yet? Register Sign In |