kept information

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • devil_online

    kept information


    Hi have this code, that I print two or more things ate a diferente time, and
    the page refreshs after 10 seconds.

    <head>
    <meta http-equiv="refresh" content="10">
    </head>
    <body>
    <?php
    $hour = 21;
    $minute = 06;
    if(date('H')==$ hour AND date('i')==$min ute)
    { echo "hi how are you."; }
    $hour = 21;
    $minute = 07;
    if(date('H')==$ hour AND date('i')==$min ute)
    { echo "are you fine?"; }
    ?>

    however it is possible to keep in the page the information that was printed?

    thanks




  • Ian.H

    #2
    Re: kept information

    On Fri, 3 Sep 2004 03:28:31 +0100, "devil_onli ne"
    <devil_online70 @hotmail.com> wrote:
    [color=blue]
    >
    >Hi have this code, that I print two or more things ate a diferente time, and
    >the page refreshs after 10 seconds.
    >
    ><head>
    > <meta http-equiv="refresh" content="10">
    ></head>
    ><body>
    ><?php
    >$hour = 21;
    >$minute = 06;
    >if(date('H')== $hour AND date('i')==$min ute)
    >{ echo "hi how are you."; }
    >$hour = 21;
    >$minute = 07;
    >if(date('H')== $hour AND date('i')==$min ute)
    >{ echo "are you fine?"; }
    >?>
    >
    >however it is possible to keep in the page the information that was printed?
    >
    >thanks
    >
    >
    >[/color]


    You could store the data in a SESSION, then read / display and overwrite
    that with the next set of data and so on.



    Regards,

    Ian

    --
    Ian.H
    digiServ Network
    London, UK

    Comment

    • devil_online

      #3
      Re: kept information


      "Ian.H" <ian@WINDOZEdig iserv.net> wrote in message
      news:3kofj012iu ko1jfat3r2mtnr7 upp87l8vt@4ax.c om...[color=blue]
      > On Fri, 3 Sep 2004 03:28:31 +0100, "devil_onli ne"
      > <devil_online70 @hotmail.com> wrote:
      >[color=green]
      > >
      > >Hi have this code, that I print two or more things ate a diferente time,[/color][/color]
      and[color=blue][color=green]
      > >the page refreshs after 10 seconds.
      > >
      > ><head>
      > > <meta http-equiv="refresh" content="10">
      > ></head>
      > ><body>
      > ><?php
      > >$hour = 21;
      > >$minute = 06;
      > >if(date('H')== $hour AND date('i')==$min ute)
      > >{ echo "hi how are you."; }
      > >$hour = 21;
      > >$minute = 07;
      > >if(date('H')== $hour AND date('i')==$min ute)
      > >{ echo "are you fine?"; }
      > >?>
      > >
      > >however it is possible to keep in the page the information that was[/color][/color]
      printed?[color=blue][color=green]
      > >
      > >thanks
      > >
      > >
      > >[/color]
      >
      >
      > You could store the data in a SESSION, then read / display and overwrite
      > that with the next set of data and so on.
      >
      >
      >
      > Regards,
      >
      > Ian
      >
      > --
      > Ian.H
      > digiServ Network
      > London, UK
      > http://digiserv.net/[/color]



      And how could I do that?

      thanks in advance.


      Comment

      Working...