Skip to content

Tag: php

How to carousel in loop?

I am trying to loop carousels with class “active” first item here is my code I trying to put active item in the loop too. Answer You can use $loop->iteration==1 as said in laravel blade doc inside the foreach:

Default to an option on a dropdown option

I’m trying to get a dropdown menu to default to a certain value depending on an employee number, I have managed to get it to say it but it’s not the right option as the options are pulled in from on MS SQL server, so it just created 2 options for ‘Labour’ for example, there’s the…

PHP: Get client MAC address

i want to get the client MAC address from an connected socket. usually you can get the IP-address via is there any chance to get the MAC at the same way? i know all about the facts that the real MAC is only available in a local network and also this hack: but i want to avoid to execute an