baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from Claus on 5/23 2007, 13:49 +01:00

    Re: Display result in Red


      Hi,

      try it in this way:

      <loop db=your_database code=perl>
      $color="black";
      $color="red" if ($testfield eq "stolen");
      out"<font color=$color>$filed1 - $field2 etc...<br></font>";
      </loop>

      hth

      Claus

    Your reply:

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

    Post a new message


 All messages from this thread: To the list 

    Message from bugmenot on 5/20 2007, 23:31 +00:00

    Re: Display result in Red


      You have to replace the one line baseportal command by your own custom perl loop.
      If you have not yet done that, do it first.

      You must then generate correct HTML in that loop. Probably something like :
       This is a <span style="color:red">red</span> word.

      There are many ways to add an if test, once you got this far.
     Post a reply

    Message from Claus on 5/23 2007, 13:49 +01:00

    Re: Display result in Red


      Hi,

      try it in this way:

      <loop db=your_database code=perl>
      $color="black";
      $color="red" if ($testfield eq "stolen");
      out"<font color=$color>$filed1 - $field2 etc...<br></font>";
      </loop>

      hth

      Claus

     Post a reply
     

 Messages from 450 to 600: 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



baseportal.com