Skip to content

Store timestamp and their price values

I have the following mysql table “auctions”. The “quantity available”, “price” and the “current timestamp” will be updated every hour from an extern API. I want to store these datas for a price/ quantity archive. For that I need to archivate the older datas (qua…

Removing Hello Dolly Actually Breaks my WordPress Site

Well this is new to me, and quite confusing as my curious mind seeks for a resolution. Hello Dolly does NOT display as a plugin option in my list of plugins within the wordpress location. Within Cpanel in the plugins folder, “Hello” is the name of the plugin (folder) that exists. If I remove this …

PHP: Adapt number ID to words

What do I need to do to convert the number only if all the number matches? At the moment, it’s converting to each number. (I’ve tried to do a lot and I didn’t succeed) I would like to know if have any way of adapting to only show the word if the number “is complete”, otherwise sh…

convert some value from mysql query using php

using php I make a query to mysql. Inside my query, some values are in seconds (just some of them), I’d like to convert them into mm:ss. So I need to move into my “array” query and I do not understand how to move inside my query result, attribute after attribute. Here is my db : In my php co…

Laravel how to create a seeder based on array

How can I create a laravel-seeder based on an array? I have an array like this: So instead of doing like this for each entry, I was hoping there might be another way to achieve that? Answer Option A) Option B) Note: Insert doesn’t automatically populate the timestamp columns.

Laravel Query Sending Different Result For Same Problem

Hi I am trying to create a one on one messaging system on LARAVEL. It was working all fine until for some users it started showing different result then expected. And it happens only for some users.. What is wrong with this query After I return $messages the result is like this… Working Result: Messages…