I’m trying to query based on two databases and columns. response_time contains an integer of minutes, ie: 15 If the anotherTable.created_at – response_time (ie, sub 15 mins) is less than the current time, return the row. I’ve tried the above but I’m having no luck and no idea how to de…
Opening a .html with window.location
I’m writing a simple login page in Ajax + Jquery I have an error when I click on the button. And I don’t understand why. Uncaught SyntaxError: Unexpected end of input At this line echo ‘<input type=”button” value=”connexion” OnClick=”window.location.assign(&#…
How to get multidimensional array grouped by multiple columns in PHP from single MySQL table?
I have table called “guids” that looks like this: From that I would like to get data in this format: Basically, I need to use multiple columns to build a nested array with grouped data. I know that I can achive that structure using foreach loop like this: But if possible I would like a more optimi…
How to encrypt XOR hex string 32 in PHP
I’m trying to encrypt some of my passwords using the XOR encryption algorithm. I tested it on CyberChef but I don’t know how to convert it from PHP. I look forward to helping. Thanks a lot. XOR HEX string 32 Answer It helps to start with the basic data structures involved. Your objective is to use…
How can I echo ‘for’ loop here
I want to use $i into his PHP condition how can I do this? I have no idea how to echo into condition. plz see the code and if you can plz help me. thank you advanced. Answer To accomplish what you are trying to do, simply follow this example: becomes So you basically take the string you want (which
FFmpeg Laravel how can make ffmpeg -f concat -i mylist.txt -c copy Two_BeSureToWearFlowersInYourHair.mp3 by Laravel
how can make ffmpeg -f concat -i mylist.txt -c copy Two_BeSureToWearFlowersInYourHair.mp3 by Laravel FFmpeg Answer Take a look at exec and shell_exec functions and backtick operator in php. There are also a couple of ffmpeg libraries for php including PHP-FFMpeg and ffmpeg-php
How to add Google Ads conversion purchase event to my WooCommerce Thank you Page
I saw this Adding Google Ads Event Snippet To Conversion Page (thank you.php) But I have a different situation. I am using ” Auto Complete Processing WooCommerce orders on Thank you Page” and “Redirect WooCommerce checkout page” all these are inside my functions.php file. This is what …
PHP Convert in date and update a database (PhpMyAdmin) with a date (like 22:43:50)
i don’t understand why i can’t update my DataBase with times like “21:20:46”. My table in PhpMyAdmin is in time unit. i already tried to update time differently like SET time = 212046 and it updated my table to 21:20:46 Answer FROM_UNIXTIME is amysql function that will work just fine |…
Image not displaying reactjs laravel
i want to get image from laravel storage and display it in react js getImage function my laravel controller function that what i get please help me to find solution i have this problem since week Answer You should return it like this
How to style echoed text?
I am trying to style the user, time and content. they only appear once the user has entered a comment into the website and so I cannot use <p> tags with inline CSS. any suggestions? Answer 1- create a class in your css (i.e: myClass) 2- use echo like this: echo ‘User: <span class=”myClass…