Skip to content

Display Count of DB Records in PHP Dashboard

I need to display a “count” of records (rows) in my SQLtable “doctors”. This count must appear on my dashboard page in the below element for total number of doctors This is index….

The function processes the sql request

The function processes the sql request. It receives parameters and one of them can be either “null” or a value (uuid), I need to add this value to where. But there is a problem, because with null “where param is null”, but with the value “where param = value” Example Answer…

Create a table for each user with their ID

I have a problem with a website that I am currently creating that I need a table for each user but it does not work. I have tried to create a table during registration or the first login, which also works. My problem is with the naming of the table, because I want the table to have the following name.

PostgreSQL: show trips within a bounding box

I have a trips table containing user’s trip information, like so: select * from trips limit 10; trip_id | daily_user_id | session_ids | seconds_start | lat_start | lon_start | seconds_end | …