Why This Model Shows These Result? |
Hi, gentle buddies Here I face this issue on this model where is wrong? thank you
PHP Code: <?php Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
I don’t quite understand why create three instances of a class. Your methods have unique names, and database queries have unique conditions.
After querying the database, the state of the query builder is reset, which means that the conditions of the first query will not be applied to subsequent ones.
Verify the table property on each model and make sure they point to the correct table.
(06-13-2022, 05:08 PM)kilishan Wrote: Verify the table property on each model and make sure they point to the correct table. Thank @kilishan I have verified this table first there were typos on the spell now is working fine in all results but interchangeably mean vise-versa @spoon products result to @bowls products and bowls product result in plate products even though it is working fine but is not really working in unique columns as targeted (06-13-2022, 07:49 AM)iRedds Wrote: I don’t quite understand why to create three instances of a class. Your methods have unique names, and database queries have unique conditions. Thank you @iRedds my real point I wanted to use a single table and get results from the unique table by the point i wanted to use with (VIEW_CELL) as result products should all depend on a single table with a unique key even though it is working fine but result come vise verse mean @spoon key result product to other @key instead of what result asked that was my wonder Why Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
Thank you so many guys by far I have come across and found by using query builder and(Generating Query Results) it is working fine with no problem but CI MODEL gives me that scenario. at the moment have solved it by using query builder now everything working fantastically
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
|
Welcome Guest, Not a member yet? Register Sign In |