Simple script to fetch mysql stats

Job ID: 32528769

Budget: £10 – £20 GBP

We need an extremely lightweight and simple PHP script that will count the amount of records each user has added:

a) Connect to mysql database (Can be done on the server - no need for remote)
b) Get records from table `items`
c) Pair each row column `user_id` in `items` with other `group` table `user_id`
d) Count total of records user has added

Script should then output total number of items user has added. We'd also like functionality to specify a date range which will check a 'created_at' column in the `items` table.
Related categories: PHP MySQL Laravel