Good day! The problem is this: in the template category(the archive) the pagination is not working, when you click on page 2 of the 404 error. Please help do not understand how to solve it, already all head broke My loop: And my custom pagination: Answer Since this has come up in two different forums lately, …
Verifiy corrupted PDF using PHP
I would like to detect corrupted PDF using PHP. I have been able to determine that on not corrupted pdf I have the tag “%%EOF” at the end of the file. I also checked for this tag on corrupted and it not appear. I had the idea to automatically checked the validty of my PDF file before uploading it …
What is the best practice for adding constants in laravel? (Long List)
I am rather new to laravel. I have a basic question, What is the best way to add constants in laravel. I know the .env method that we use to add the constants. Also I have made one constants file to use them for my project. For example: And so on. It can reach upto 100 or more records. So
Text File to Array
I am trying to put my text file into an array.. my text file content is like this: anyone can help me to make the output looks like this: thanks in advance.. this is my code:- the problem is it outputs a multidimensional without array names.. and i am not familiar in multidimensional array.. Answer You can do…
Fatal error: Uncaught Error ( php mysql )
I am learning php oop with mysql and I am having trouble fixing this code. I have checked it twice and also checked this platform to confirm. <?php require 'databasesclass.php'; $database = …
How can i get sub array value to main array key? [Php]
I have an array. This array have a sub arrays. I want to take sub array value to main array keys. Here is my example array: Array ( [0] => Array ( [index-id] => 12 …
How to update cart options in LaraveShoppingcart by Crinsane
I’m using laravel cart by Crinsane https://github.com/Crinsane/LaravelShoppingcart I wanna update options cart, I have many options inside, but I just want only one option to change, and I cannot do it Here’s my code and then I want to change options Here’s my code and then the result option…
Dropdown onchange calling PHP Function
What I’m attempting to do with the below code is call a PHP function from an drop-down menu. Is there a clean way of doing this? code: Answer simple ajax using jquery index page in submit.php for simple js ajax use XMLHttpRequest
How to sync multiple values of the same Attribute in Laravel?
I developing an eCommerce ( with Multiple Product Attributes feature ) website using Laravel 5.4. Everything is working fine. But When I try to sync multiple values of the same Attribute in Pivot table. Laravel ignores the duplicate pares. For example, I’ve an Attribute called “Network” whic…
codeigniter encryption / decryption function returns empty string
I am trying to login using codeigniter, but not able to do so. Then i tried to copy password from DB and pass it to dycription->decode() function, and it’s returning empty string. Here is the code output was: string(0) “” And this code also returning empty strings What i am doing wrong he…