I’m facing a problem that all checkboxes are checked. I want only the checkbox which has a value in database to be checked. I have these three tables where place_category is the pivot table ——- …
Tag: php
Why error handling is not working in Laravel
I have set the debug to true on .env file. Added the exceptions correctly but when i am passing invalid or not exist in my database its showing me 404 error but here I put the custom error handling …
Is there a way to check if someone was sent to a page by a certain other page?
I’m making a site and part of it is additional information after you have signed up. After you have filled out the boxes and all in register.php you’re sent to signup.inc.php (Through the post method) …
image not displaying in mail in queue – laravel
In my mail template I used image path as below : It is working with normal mail (without the queue) but not in mail in queue. By inspecting element in mail i found that when for normal mail image path is as below : But for mail queue it is : Answer You have to set a URL for your
How to echo multiple images using an Array
Using this code: prepare(“SELECT pdimg1 FROM products WHERE pdcat LIKE ‘fashion%’”); $stmt->execute(); $rows = $stmt->fetchAll(); $img1 = ”; foreach ($rows as $row) { …
how to display all images in a folder
I’m develop my websites and want to display all the images in a folder. I used the following code but occurred an error. <?php $sesi = Session::get('id'); $gambar = glob('archive_gambar/…
Form – checklist value to not transferred to PHP
I’m trying to populate the multiple selected choice from checklist into PHP. However, only the “Reading” choice is populating in the new window and not the other choices that I have selected. For …
shell linux don’t execute commande
I have this command and it works fine on shell. I want to run it with php but it does not work what i missed : edited : $arg=”arg1″; $arg2= “arg2”; echo shell_exec(“sshpass -p “.escapeshellarg($…
Parse diverse array of numbers for value and number
I am using PHP 7.3.5 and I have the following set of array values: $valueArr = [‘-4.2%’, ‘51.0’, ’90K’, ‘0.5%’, ‘0.74|2.6’, ‘-1.2B’, ‘779B’, ‘215K’, ‘92.2%’, ‘42.8B’, ‘1.49T’, &#…
Fetching objects from database in Symfony
I have entity Domain which has fields id, domain, users in field users, I have an id which is the id of the user who created that domain. now I have created for in the template which will display …