Skip to content

How to fetch values for every id present in array using loop

I have an array with following values: and a table ‘orderdetails’ in database with order_title and order_id columns. What I want is to fetch order_title of every order using order_id in a loop. Can anyone help? What I know is: but this will make query run multiple times, any better solution? UPDAT…

This regex works on regex101 but not in my script, why?

I have this regex: Which is not working as it should, see this code: I wrote my regex using this and it is working fine, until i add the regex to my script. https://regex101.com/r/EmebOT/1 If i replace [aàâ] with “â” in the regex so the regex looks like this, it works: Answer I got this working wi…

Using for loop data to for 10 rows at a time

I could not find an answer to this question or I completely missed the answer, what I am doing is looping from a database, just a number value, this variable $competition[‘competition_number_of_tickets’] could be for example 200. The way my code is now, each button lists 1 after each other, what I…