Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

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?

Comments

Sign In or Register to comment.