Warning: mysqli_connect(): (42000/1203): User andreww_jonscode already has more than 'max_user_connections' active connections in /data03/andreww/public_html/ecfgrading.org.uk/new/procs.php on line 6
Suggests that the code is either not clearing down used connections correctly or it is simply creating too many new ones and hitting the limit imposed by the MySQL configuration.
As an aside I would not allow Warning level messages to be visible to the end user. I filter these for my own sites on an IP address level so that only I see them.
They can reveal details that should not be revealed such as user ID information.
The grading database should be using its own ring fenced PHP/MySQL server instance. All that is needed is to purchase another Bronze level CPanel from Zen Internet and migrate to that. Right now the grading database shares resources with other ECF resources such as the main web site which uses WordPress/PHP/MySQL.
Sharing sites on the same MySQL instance is a big mistake since poor code on one site could take down the other.