baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from Sander on 5/30 2008, 11:24 +00:00
    EMail: support@baseportal.de WWW: baseportal.de

    problems with databases


      Today we had a problem with baseportal.com

      if you can't see your data, please click on your database -> management -> reorganize database.

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 
    Message from Matt on 6/13 2008, 02:59 +00:00
    EMail: baileyblum@juno.com

    Limiiting the number of entries


      Let's say I have an online form and I want to limit the number of entries that can sign up for a class. Is there a way this can be done?

      Thanks,

      Matt
     Post a reply

    Message from Sander on 6/14 2008, 10:32 +00:00

    Re: Limiiting the number of entries


      above <do action....> you need this code:

      <perl>
      if($cmd eq "do_add"){

      ####### if you want to limit the entries for a database;
      init "dbname";

      if($_amount>10){ #more than 10 entries
      out "no more entries possible";
      $_get{cmd}="";
      $cmd="";
      }

      ####### or if you have more categories you want to limit

      get "categoryfield==yourflag","dbname";
      if($_amount_query>10){ #more than 10 entries
      out "no more entries possible";
      $_get{cmd}="";
      $cmd="";
      }
      ########
      }

     Post a reply
     
 Messages from 300 to 450: To the input form 
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



powered in 0.04s by baseportal.com
Get your own Web Database - for FREE!