NogDog wrote:The simplest way would be to first do a query to find out how many they have created so far. This assumes, however, that there is some way in the database to determine which accounts were created by which admin user?
Yes, I suggest you CREATE TABLE 'subadmin'.
Fields could be, just for example like:
item_id
subadmin_id
account_id
Where account_id is the account created by subadmin x
We should not be afraid CREATE new TABLES!!
They make Database searching and handling much more simple.
Read: Makes our SQL Query not too complicated.
We may have for example something like:
$sql = "SELECT count(account_id) FROM subadmin WHERE subadmin_id = '$id'";
regars