Skip to content
Advertisement

Tag: codeigniter

Display table line following condition – codeigniter

I have a table in our admin panel. The table display the coupon and the deal, but for a better reading we would like to have a split table. 1 for coupons and 1 for deals. I can’t figure out how to display only the data according to the status if deal or coupons. Here below is my loop to

Updating multiple tables in SQL using an Array

Currently I had a table called crm_leads for my Leads page where I already have many records. Now for the same page I have created few new fields which is now going to be stored in another table called crm_leads_details. Now I’m storing all my POST values in an array format like so: Now in my model I’m trying to

Codeigniter form helper setting input class on edit form

I am using ion auth to edit some user data.This is the code This produces the input plus the value but without the input class My first code snippet is an attempt at adding input class and populating the input field. This gives me a conversion error Message: Array to string conversion How should i add form class inside the

Accessing php variable from within function scope

I have this code in a codeigniter controller that’s the beginnings of a pagination/sorting feature for a table in the view. I’m passing order_by as a query parameter and then this is part of the controller action: The problem is…I keep getting the error Undefined variable: order_by. Since I’m checking that $order_by exists in the if statement, why am I

Advertisement