i got this error when i’m trying to send multiple email, and i also want to pass a data to mail view. here is my controller: and here is my mail view: i don’t understand where i’m doing wrong, thankyou! Answer You don’t need to wrap the result of your query in an array. Also if you onl…
Tag: php
CI4 on live server not reflecting changes made, it shows old data. Dynamic contents and other changes are not reflected
I created a website using CI4 and it was working fine. On WAMP server it’s working fine. Now if change anything and update the server it shows the old data and session not working properly sometime. I think browser is caching the webpage. Is there any way to disable in CI4? Is it cache issue or session?…
Laravel – Problem Of How To Tune Strange Behavior With Sending Text Message
I have a very special problem and I don’t know how to deal with it. I have web App in Laravel, when i open index page, I receive text message to my mobile phone. Problem is, sometimes I receive 2 messages or 3, sometimes 1. Is there a tool how to debug this strange behavior which is not always the
Symfony3: Correspondence of key value reversal in Choice Type
I’m updating Symfony. When I upgraded to Symfony3, all the “State.” Names displayed on the form changed to numbers. All state values are set in services.yml. By reversing the yml value, the display in the browser was restored, but when I tried to save the value selected in the pull-down in t…
How to pass an image file thru jquery $.ajax() correctly?
I am trying to upload an image and passing the userID and file through ajax to the PHP file profileSettings.inc.php. However it succeed in running the php file, but the data was not passed through. When I ran print_r($_POST);, in the php file it returned an empty array. Form: profileSettings.inc.php: ?> An…
Security for websites
I am trying to add some security to my website which has an admin panel and a user page. So far my security has code which sends the user back to the login page if the user tries to access a page through the url. However, there is still one problem that remains. If I login as a user, the
Laravel foreach loop malfunctioning with old() data
I have a form that allows users to add a new row of inputs by clicking a button. For some reason on form submit (with a required row purposefully left empty to test form repopulation), index #1 is being skipped, and it happens every time the form is submitted. Also, extra rows are added on submit, and I can&#…
PHP file download not recognizing file type in Chrome and Edge
I’m trying to create a simple download page, which currently works in Firefox but not entirely in Chrome and Edge. The file to download is an mp3, located in a private directory on the server. When I download the file in Firefox it works as intended. If I download it using Chrome or Edge the file still …
Laravel: Why are results from the database being displayed in the view differently than what Dump&Die says is retrieved?
I have a table called parts. The primary key is part_id, it is not to be incremented, it is a VARCHAR (Laravel string). All part id’s are 2 numbers, hyphen, 4 numbers (e.g. 12-3456) When the results from a query are displayed in the web browser they are not entirely the same as what Dump&Die <?ph…
Any hook in WordPress that runs after session is started?
I need to set a session value in my plugin, but session isn’t started when WordPress loads my plugin and I don’t want to run if (!session_id()) session_start(); manually, because other plugins might rely on setting cookies, etc and face a “headers already sent error”. Is there any hook…