Skip to content

Date filter function with SQL doesn’t work

I have a website where I load various activities who all have a specific date. I want to filter on those dates. I do that with this query: function selectAllActivities($date = false){ $sql = “…

Remove one, non-unique value from a 2d array

To expand on my answered question here: Remove one, non-unique value from an array Given this table in PostgreSQL 9.6: CREATE TABLE test_table ( id int PRIMARY KEY , test_array text[][] ); …