I tried to import an Excel file in the database,but the dates are shown as 5 digit numbers 44605 representing 2/13/2022.What can I use to conv
I have this function private static function applayPrice($objProduct, Product $product, $applay_price, $applay_old_price) {} The problem is that someti
I am working with Ajax, as request is success but not getting proper json response. In Response its getting like this 0{.....} What is the solution to this? MY
this is the code where i send email. the file_get_contents(); i retrieve the content but in plain format text. the css style didnt read. <?php use PHPMaile
I want to verify email when users register. I am using codeigniter3. When I run on the localhost I do not receive any mail. I get this message " Unable to send
I am trying to attach a string on php variable this is my code if ($tipy = "2"){ $username = "dr_" + $username; } and output to b
I just started with PHP not too long ago and have done some small projects with just plain PHP + Ajax + html. I’m more comfortable with procedural code th
I know that this question has already been answered in other topics but for some reason it doesn't work for me and I don't understand why. I call a template wit
I have an [essential grid] grid which goes through some [the events calendar] events. Now in each of those items, I want to display the event start date but whe
I have a little problem when I want to test an array in my unit test. I want to test both structure and type of keys, but I don't know how to process it (I trie
I have an array of objects and i should compare which ones have two equal values. The real case is this: i have a series of events, each of which has a date, a
I'm currently working on displaying a table containing a list of alarms, where each row contains a checkbox that determines whether the user has already viewed
Good day, So I have the following array to start with that has items added to it. The order the items are added in the list have no specific s
I have a multilingual laravel application. My url structure like that: https://example.com/en/paths https://example.com/es/paths I installed wordpress in /publi
I'm reinstall server on Ubuntu 20.04 with control panel "Hestia" with php-fpm support. But i have 404 error in front page domain.com/ if i use in .htaccess: Rew
I am working with xml files with 50-150k+ entries, and about 50-100MB+ in size that change daily. All entries are unique, and have 10-15 elements per entry (id
I have nested array with key & value pair. i want to convert it in single array. /* This is current array */ Array ( [id] => Array
I am trying to submit a contact form using laravel livewire like: public $name; public $email; public $phone; public $message; public function submitForm() {
Recently I noticed few queries are taking very long time in execution, checked further and found that MySQL Optimizer is trying to use COLLATE in Where clause a
Why is php not able to declare a function more than one time? I am using while loop with mySQL that contains list of IDs and I am trying to parse the ID to this