Skip to main content
Topic: Re: Custom validation? (Read 2537 times) previous topic - next topic - Topic derived from Custom validation?

Re: Custom validation?

Hi, Is there any example how to use ACTION BEFORE ADD?

what i want is :

1.- MAke a query to validate if date input EXIST on Database  or IS in a RANGE:
      $db->rawQuery("UPDATE posts SET view_count=view_count + 1 WHERE id='$rec_id'");

2.- If Exists Cancel ADD and send a message

3.- If NOT Insert

Re: Custom validation?

Reply #1
Ho un problema simile.
ma qui non risponde nessuno.