Skip to content

Get the week start date and week end date from week number in raw query

!Get the week start date and week end date from week number in raw query #2 after group all ids in array

the second after group by organization_id I need all booking id in array not string

Advertisement

Answer

To get the start and end of week you can use this:

And for second question:

MySQL does not have concept of array type for data.

You need to explode the data into an array, using php code like this:

User contributions licensed under: CC BY-SA
9 People found this is helpful