Help with limitation

edited November 2011 in Modules
I havethis:

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Adverts_model extends Base_module_model {
public $required = array('advert_title');
function construct() {
parent::construct('fuel_adverts');
}

}

class Adverts_item_model extends Base_module_record {

}

And in my database i have id, advert_title and image, but when in the admin i need something to say the following:

"Sorry you've upladed 10 adverts and most remove an advert to create another one"

Then in the code dont allow creation of another until one item is removed....

So what would I need to add to the above code in order to this?
Sign In or Register to comment.