Skip to content

Laravel 8.54.0 + Livewire : Error SQLSTATE[IMSSP] Tried to bind parameter number 2101. SQL Server supports a maximum of 2100 parameters

I use Laravel Framework 8.54.0 and livewire. I want to call data for my dropdown form. But I get sqlstate error. Could anyone help me find a way to solve this issue? Model: Livewire Controller: View: Answer it says you have more than 2100 records so the query should contain all of them in where query!! Well i…

Dompdf does not render pdf in mobile chrome

Am using Codeigniter 4 and trying to convert a dynamic HTML (invoice) to pdf so it can be download when a user click on a button. It was working perfectly on my local machine chrome and edge browser, …

Unix epoch time converts to human readable incorrectly with PHP

1630440104 is the Unix epoch time code example. This PHP code outputs it as 2021.08.31 at 23:08:44 which is incorrect. Because the correct output should be 2021.08.31 at 23:01:44. Whatever time code I insert into the above PHP code it returns 08 minutes instead of the actual value. Where have I made a mistake…

Get latest file in dir including subdirectory php

i found out that i can use to get the latest file in the given directory (‘myfolder’). is there an easy way to get the latest file including subdirectorys? like: myfolder> dir1 > file_older1.txt myfolder> dir2 > dir3 > newest_file_in_maindir.txt myfolder> dir4 > file_older2.tx…