Skip to content
Advertisement

How to show the Id number in descending order?

I am using PHP and I have to export the data from the database. I am using the below code which is working. I am getting all the records. Notice that I am getting all the records in descending order and id is showing ascending `order. This is my expected output: How can I show the Id in descending order?

PHP str_replace notworking if used 2 times

So I have this practical page I made to see if I can make a template language, the code is listed below: It seems like if I add 2 str_replace functions, the echo is blank, and the $e var is working fine. I tried echoing out both $e vars, but they are both fine. If someone could point me in

API Plateform custom get operation

I am trying to build an ecommerce site using API plateform. Since I am using JWT authentication with LexikJWTAuthenticationBundle I am having a hard time to get the user with the token. I would like to access the cart of the user. I managed to add to the cart through a custom post operation. I am trying to use the

Laragon – How do I serve a website on startup?

Right now I have to open laragon start all > go into commands > and write php artisan serve, only then can I access the local website. My question is how can I start all and serve the website on …

remove the characters after the last of a specific character

so i want to have a string and then remove the text after the last of a specific characters, so heres the string i have tried using substr that worked but i dont knowhow to do it fo the lat fo that spcific char my red example where i want to use this is to seperate the atributes from a

Display photos from Flickr in a responsive grid [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I am trying to display photo’s obtained from a flickr image search API, and the display the images in a grid,

PHP Timeout and TOO_MANY_REDIRECTS

here is the situation; I have an import running on php (basically, you can consider it as a big while loop). But, as there is a lot of data (hours of data to import); I can’t do that in one request, otherwise i’m taking the php timeout error after 10 min. in order to avoid that timeout issue, I’ve decided

PHP weird curly brace syntax?

Does anyone know if PHP has an alternate curly brace syntax? I’ve come across a PHP file with a weird syntax I’ve never seen before. It’s being used in a Wordpress theme. Here’s an example of the …

Advertisement