Skip to content
Advertisement

Tag: codeigniter

PhpExcel many columns causes the file to be broken

I am generating an excel file using phpexcel, the columns are 186 so I have created an array of the header columns and dynamically adding them the file is created well but the columns are broken as seen in the picture below. anyone ever encountered this issue? UPDATING THE QUESTION Now the xcel sheet has over 150 columns but not

How to use foreign keys migration with database migrations. (errno: 150 “Foreign key constraint is incorrectly formed”)?

CodeIgniter 4 has a handy solution for migrations and seeders. Without the usage of foreign keys, everything is working perfectly. But when I use foreign keys I get “Unable to add foreign key”. This is because of the order of happenings: Quick example: So when I now run php spark migrate or php spark migrate:refresh the foreign key can not

How to view data based on values ​from database ci3 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 months ago. Improve this question I want to make a recapitulation of absent data, which I display using a table in CI. The problem that occurs to me is that

Otp is not post in database

after user submit mail id otp will be sent to that email id but my code isn’t working it post the email id in database but not the otp. Please can any one help? Controller Code auth.php Model code user_model.php Answer In your controller you are actually passing three arguments to the $this->user_model->insert() instead of two. Second argument needs to

Advertisement