baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from Sander on 9/2 2003, 23:33 +00:00

    Re: Thank you so much!!!


      better is

      <perl>
      $this_month=datum("jetzt", "Monat0");
      </perl>
      <loop db=birth Month=~$this_month>
      Name: $Name<br>
      Date: $Birthday<br>

      </loop>

      in this case <loop> fetchs only the relevant entrys of this month. its more performant in big databases.

      Sander

    Your reply:

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

    Post a new message


 All messages from this thread: To the list 
    Message from dAnUx on 8/29 2003, 04:38 +00:00
    EMail: duteau@email.com

    yet, another "date" problem to solve...


      Hello:

      I tried many things to do this, but all this hasn't work... The problem is that I have made a birthday database. I have configured the date so that there is no year entry (only month and day). Now I will call all the entries that have date=current month. It hasn't work so I did add a textfield whose name is "monat" (month in german) with te options 01 to 12. Then I prove with:

      out datum("jetzt", "monat0")

      This gives me 08 (which is te current month, August) but I can´t incorporate this perl code into the query. I have prove something like this (and many, many variants):

      <loop db=birth&monat= ANYTHING>

      In ANYTHING I have proved really anything: perl codes, scripts and variables from other databases...

      I need your help ¿How can I do this?

      Daniel

     Post a reply

    Message from franz on 9/2 2003, 11:31 +10:00
    EMail: krauth@web.de

    Re: yet, another "date" problem to solve...


      try something like this to display the birthdays of this month:

      <loop db=birth script=perl>
      if ($monat == (datum("jetzt", "monat0")){
      out "Name: " <$FIELDNAME CONTAINING NAME > "<br>";
      out "Date: " <$FIELDNAME CONTAINING DATE > "<br>";
      }
      </loop>

      note: its not testet!

     Post a reply

    Message from dAnUx on 9/2 2003, 03:56 +00:00
    EMail: duteau@email.com

    Thank you so much!!!


      Thank you Franz...

      It work... it had some errors, but the idea was wery important... finally it work in this way:

      <loop db=birth code=perl>
      if ($Month == (datum("Jetzt", "Monat0"))){
      out "Name: ", ($Name), "<br>";
      out "Date: ", ($Birthday), "<br>";
      }
      </loop>

      Fantastic, great... thank you...

      dnx

     Post a reply

    Message from Sander on 9/2 2003, 23:33 +00:00

    Re: Thank you so much!!!


      better is

      <perl>
      $this_month=datum("jetzt", "Monat0");
      </perl>
      <loop db=birth Month=~$this_month>
      Name: $Name<br>
      Date: $Birthday<br>

      </loop>

      in this case <loop> fetchs only the relevant entrys of this month. its more performant in big databases.

      Sander

     Post a reply


    Message from Sander on 9/2 2003, 23:34 +00:00

    Re: Thank you so much!!!


      uuups..

      <loop db=birth Month~=$this_month>

     Post a reply
     
 Messages from 3300 to 3450: 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.02s by baseportal.com
Get your own Web Database - for FREE!