Skip to content

PHP Mktime shows 2 March’s when I dump foreach month

I’ve been using the following function fine until the other day when the clocks went forward: It outputs an array with: string[] int[] Since the other day (like 2 days ago, when the clocks went forward in the UK), the function seems to be showing me 2 march months and 0 Februarys…. Very very stran…

How to display a particular div in jquery?

I have written some code for displaying a particular div in html. The code is shown below : I have written a code for displaying the div pdfdiv_1 in jquery as shown below : When I am printing the console output, it is only printing the first section part but not the second section tag. The output in console i…

Best practice to connect WPF and SQL Server

I have been working using WPF for a while, but due to lack of resources I used Access Files as Databases. Recently I got the opportunity to get my hands on a SQL Database. When I created my WPF Application (a simple data entry, which writes and read from the database) one of the IT guys where I work started

inserting user in database from regitration form laravel 8

i am working on a e-commerce website using laravel 8 for the first time i created a login and registration views, when i try registering first it flashed iccorrect email adresse in session error that is displayed in register.blade.php after fixing that it redirected me to an error page with this text : my rou…

How can I select one item of an array with laravel http request?

If i run this controller in laravel: I’ll get this result: But I only want to return the title, upc and brand and save them as three seperated variables to store them in my database. How can i do that? If I do this: I’ll get NULL; Does anybody know how to do this in laravel? Answer Laravel convert…

Java Socket Server with PHP client

the question is totally rewritten since I have understood that previously it was really unclear. I have created a Java Socket server with threads to accept multiple connection in order to handle php tcp requests. The java server just for the testing purposes it reverse the string supplied from php. Java serve…

Substract Time Logic – PHP

I want to show time slots between 2 times. Start time & End time. Used below code, it’s working fine. It loops start and end time and add 30 mins to time. Starts from 2:00pm, 2:30pm, 3:00pm all the way till 10:00pm What I am stuck on is 2 parts Hide past time, lets say right now is 4:00pm, it