Forum Moderators: coopster
or
do a count before entering into db, and if result is higher than 50 send them back, or to another page.
$qty_rows=mysql_num_rows($qty_rows_result);
if ($qty_rows>50) {go back}else {insert in DB and go forward.}
depending upon what site you run, it is necessary in many cases.
<p><a href="add.php">Add Item</a> (you may add up to 23 more items)</p>
or, if they have reached quota
<p>Sorry, you can't add any additional items. You've reached your quota of 100 items</p>
Then, of course, you need to check when the add.php page is invoked that the user is logged in and has additional space in the quota before presenting a form.
If you need help with the specific query, post a *few* details on how the user and items tables are related and how the data is stored.