php-general Digest 10 Feb 2002 10:00:24 -0000 Issue 1163

Topics (messages 84139 through 84157):

Re: mysql_select_db() problem
        84139 by: Lars Torben Wilson
        84148 by: Nick Wilson

Colecting IP information
        84140 by: Philip J. Newman
        84149 by: cyberskydive

Re: Parameters via Link
        84141 by: Manuel Ritsch
        84143 by: Lars Torben Wilson
        84144 by: Manuel Ritsch
        84146 by: Lars Torben Wilson

Nested functions
        84142 by: DL Neil
        84145 by: Lars Torben Wilson
        84157 by: DL Neil

set_error_handler() not catching some errors
        84147 by: Charlie Killian
        84151 by: Michael Sims
        84155 by: Charlie Killian

Sitenavigation
        84150 by: Raymond Lilleodegard
        84153 by: PHP NY

Phatt MySQL entry
        84152 by: Liam MacKenzie

limit to X posts on each page?
        84154 by: Hawk

Re: free usefull piece of code for everybody!
        84156 by: hugh danaher

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On Sat, 2002-02-09 at 12:24, Nick Wilson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all, 
> I just can't see what could possibly be wrong with my php here:
> 
>         $sel_db=mysql_select_db("mydb") or die 
>         ("could not get the bugger");
>         exit;
> 
> I can 'USE mydb' just fine from the command line so what's the problem?
>     (returns the die statement)
> 
> Much thanks..
> - -- 
> 
> Nick Wilson

I take it that the connection worked fine? (Yeah, dumb question, but you
never know.)

What do you get if you use error checking?

if (!$dbh = mysql_connect(. . .)) {
    echo "Could not connect; reason was " . mysql_error() . "\n";
    return false;
}

if (!$sel_db = mysql_select_db('mydb', $dbh)) {
    echo "Could not select database '$sel_db'; reason was " .
        mysql_error() . "\n";
    return false;
}

i.e. what do you get if you use mysql_error() after this fails?


Torben

-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


* and then Lars Torben Wilson declared....
> I take it that the connection worked fine? (Yeah, dumb question, but you
> never know.)

Yeah, all is well as far as connections concerned.

> What do you get if you use error checking?

Well, that seems to be it, I'm getting 'Access deneid to user
'@localhost'.....

I'm talking to a guy on the mysql list, apparently it is a
phenomememememememmemonmmm that when you GRANT ALL using wildcards it
tends to grant all on * except localhost! 

- -- 

Nick Wilson

Tel:    +45 3325 0688
Fax:    +45 3325 0677
Web:    www.explodingnet.com



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8ZcMsHpvrrTa6L5oRAqyCAKChAKKFljtpKg+vKArgbLW6KwT2CQCeM5xc
tRuUnNm8WUGOl8M7l1xrXfU=
=xr5Z
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Trying to colect ip, and name server, dns name from a user how do I do this? can you 
point me to the right place?

Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
--- End Message ---
--- Begin Message ---
Dunno right off hand about NS and DNS but a simple getenv('REMOTE_ADDR');
will return the IP address of a user.


"Philip J. Newman" <[EMAIL PROTECTED]> wrote in message
001d01c1b1c1$b33fec80$0401a8c0@philip">news:001d01c1b1c1$b33fec80$0401a8c0@philip...
Trying to colect ip, and name server, dns name from a user how do I do this?
can you point me to the right place?

Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012



--- End Message ---
--- Begin Message ---
Still doesnt' work, any ither suggestions?

"Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> On Saturday 09 February 2002 02:23, Manuel Ritsch wrote:
> > Hey there
> >
> > I want to make a webpage out of one main pagewith php, if you press on a
> > link i want that it changes the content of the page, but it doesn't seem
to
> > work, i tried it like this...
> >
> > link:
> >
> > <a href="index.php?link=home">
> >
> > php code:
> >
> > if($link == home)
>
> if ($link == "home");
>
>
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
>
> /*
> Trespassers will be shot.  Survivors will be SHOT AGAIN!
> */


--- End Message ---
--- Begin Message ---
On Sat, 2002-02-09 at 15:39, Manuel Ritsch wrote:
> Still doesnt' work, any ither suggestions?

Sounds like you don't have register_globals turned on. (Don't turn it
on! globals are eevviill! ;)

Try:

if ($_REQUEST['link'] == 'home') {
    . . .
}

Or, if using an older (pre-4.1.0) version of PHP, try:

if ($HTTP_GET_VARS['link'] == 'home') {
    . . .
}


Hope this helps,

Torben

> "Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]...
> > On Saturday 09 February 2002 02:23, Manuel Ritsch wrote:
> > > Hey there
> > >
> > > I want to make a webpage out of one main pagewith php, if you press on a
> > > link i want that it changes the content of the page, but it doesn't seem
> to
> > > work, i tried it like this...
> > >
> > > link:
> > >
> > > <a href="index.php?link=home">
> > >
> > > php code:
> > >
> > > if($link == home)
> >
> > if ($link == "home");
> >
> >
> >
> > --
> > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> >
> > /*
> > Trespassers will be shot.  Survivors will be SHOT AGAIN!
> > */
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506

--- End Message ---
--- Begin Message ---
I have PHP Version 4.0.5 and register_globals turned on but it doesnt' work
=(


"Lars Torben Wilson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
1013298469.9790.13.camel@ali">news:1013298469.9790.13.camel@ali...
> On Sat, 2002-02-09 at 15:39, Manuel Ritsch wrote:
> > Still doesnt' work, any ither suggestions?
>
> Sounds like you don't have register_globals turned on. (Don't turn it
> on! globals are eevviill! ;)
>
> Try:
>
> if ($_REQUEST['link'] == 'home') {
>     . . .
> }
>
> Or, if using an older (pre-4.1.0) version of PHP, try:
>
> if ($HTTP_GET_VARS['link'] == 'home') {
>     . . .
> }
>
>
> Hope this helps,
>
> Torben
>
> > "Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> > news:[EMAIL PROTECTED]...
> > > On Saturday 09 February 2002 02:23, Manuel Ritsch wrote:
> > > > Hey there
> > > >
> > > > I want to make a webpage out of one main pagewith php, if you press
on a
> > > > link i want that it changes the content of the page, but it doesn't
seem
> > to
> > > > work, i tried it like this...
> > > >
> > > > link:
> > > >
> > > > <a href="index.php?link=home">
> > > >
> > > > php code:
> > > >
> > > > if($link == home)
> > >
> > > if ($link == "home");
> > >
> > >
> > >
> > > --
> > > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> > >
> > > /*
> > > Trespassers will be shot.  Survivors will be SHOT AGAIN!
> > > */
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> --
>  Torben Wilson <[EMAIL PROTECTED]>
>  http://www.thebuttlesschaps.com
>  http://www.hybrid17.com
>  http://www.inflatableeye.com
>  +1.604.709.0506
>


--- End Message ---
--- Begin Message ---
On Sat, 2002-02-09 at 15:54, Manuel Ritsch wrote:
> I have PHP Version 4.0.5 and register_globals turned on but it doesnt' work
> =(

Is it inside a function? If not, can you send me a copy of the
script?


Torben
 
> "Lars Torben Wilson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> 1013298469.9790.13.camel@ali">news:1013298469.9790.13.camel@ali...
> > On Sat, 2002-02-09 at 15:39, Manuel Ritsch wrote:
> > > Still doesnt' work, any ither suggestions?
> >
> > Sounds like you don't have register_globals turned on. (Don't turn it
> > on! globals are eevviill! ;)
> >
> > Try:
> >
> > if ($_REQUEST['link'] == 'home') {
> >     . . .
> > }
> >
> > Or, if using an older (pre-4.1.0) version of PHP, try:
> >
> > if ($HTTP_GET_VARS['link'] == 'home') {
> >     . . .
> > }
> >
> >
> > Hope this helps,
> >
> > Torben

-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506

--- End Message ---
--- Begin Message ---
Hi,
Have been experimenting with the array_walk function and a little array debug print 
facility, but ran into a
problem with nested functions. The code can be written with nested functions and 
successfully executed once; but
when repeatedly executed an error appears.

Can one code user-defined functions nested within one another - and repeatedly execute 
them?


The PHP Manual: Chapter 12. Functions, says:
"A function may be defined using syntax such as the following:
...
Any valid PHP code may appear inside a function, even other
    functions and class definitions."


Here is some test-bed code:
<?php

Function ShowList( $title, $aList )
{

 Function FnNested( $item, $key )
 {
    echo "<br>$key=" . $item . "~";
 } //end of FnNested

 echo "<br>Listing array=$title: n=" . count( $aList );
 array_walk( $aList, "FnNested" );
 }  //end of function ShowList

//mainline code
 $aLocated = array( 'zero', 'one', 'two', 'three' );
 ShowList( "Located1", $aLocated );
 ShowList( "Located2", $aLocated );
?>


Sample output:

FnShowList~
Listing array=Located1: n=4
0=zero~
1=one~
2=two~
3=three~
FnShowList~
Fatal error: Cannot redeclare fnnested() in c:\data\webs\webute_tst\l.php on line 6


Please advise,
=dn

WinNT 4.0 SP6a running PHP vn 4.0.6, Apache vn 1.3.20WinNT, MySQL vn 3.23.40-nt


--- End Message ---
--- Begin Message ---
On Sat, 2002-02-09 at 15:40, DL Neil wrote:
> Hi,
> Have been experimenting with the array_walk function and a little array debug print 
>facility, but ran into a
> problem with nested functions. The code can be written with nested functions and 
>successfully executed once; but
> when repeatedly executed an error appears.
> 
> Can one code user-defined functions nested within one another 

Yes.

> - and repeatedly execute them?

No. ;)
 
> The PHP Manual: Chapter 12. Functions, says:
> "A function may be defined using syntax such as the following:
> ...
> Any valid PHP code may appear inside a function, even other
>     functions and class definitions."

This is correct. As you know, the thing is that execution keeps running
into that function declaration every time the containing function is
run, tries to declare the function, and fails. Essentially: while you
*can* do nested functions in PHP, don't. :) There really isn't any good
reason to, anyway--except for (perhaps) a wee bit of namespace
clarification.
 
> Here is some test-bed code:
> <?php
> 
> Function ShowList( $title, $aList )
> {
> 
>  Function FnNested( $item, $key )
>  {
>     echo "<br>$key=" . $item . "~";
>  } //end of FnNested
> 
>  echo "<br>Listing array=$title: n=" . count( $aList );
>  array_walk( $aList, "FnNested" );
>  }  //end of function ShowList
> 
> //mainline code
>  $aLocated = array( 'zero', 'one', 'two', 'three' );
>  ShowList( "Located1", $aLocated );
>  ShowList( "Located2", $aLocated );
> ?>

There really isn't any reason to do this; you could achieve the same
thing like so:

<?php
error_reporting(E_ALL);

function FnNested( $item, $key ) {
    echo "<br>$key=" . $item . "~";
} //end of FnNested


function ShowList( $title, $aList ) {
    echo "<br>Listing array=$title: n=" . count( $aList );
    array_walk( $aList, "FnNested" );
}  //end of function ShowList

//mainline code
$aLocated = array( 'zero', 'one', 'two', 'three' );
ShowList( "Located1", $aLocated );
ShowList( "Located2", $aLocated );
?>


Hope this helps,

Torben

-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506

--- End Message ---
--- Begin Message ---
Thanks for the confirmations Torben.


> > Can one code user-defined functions nested within one another
> Yes.
> > - and repeatedly execute them?
> No. ;)
>
> This is correct. As you know, the thing is that execution keeps running
> into that function declaration every time the containing function is
> run, tries to declare the function, and fails. Essentially: while you
> *can* do nested functions in PHP, don't. :) There really isn't any good
> reason to, anyway--except for (perhaps) a wee bit of namespace
> clarification.

Namespace clarification is exactly what I had in mind - I am post-processing the n=0, 
1, >1 results from a
preg_match_all() and figured that array_walk() would be faster than for{$i...} or 
foreach(). However learning
that array_walk() demanded use of a function, that implied that my 'modular' function 
would have to call a
(short) second to suit the command structure - thus the logic that nesting would 'keep 
things together' in
reuse/restructure situations.

[As you will appreciate, the "test bed" code was almost directly out of the manual, 
and was only being used so
that I could experiment/get my head around the command/and thereafter test the 
efficiency criteria]

I thought I would ask, if only because other languages, even interpreted languages, do 
cope with this
situation - but as you say, it is not a show-stopper
- a possible case for FUNCTION_once name() as per REQUIRE and INCLUDE?

Thanks again,
=dn


--- End Message ---
--- Begin Message ---
set_error_handler() is passing some errors like:
$d = x;
Use of undefined constant x - assumed 'x'

But others like not including a semicolon returns nothing:
$d = 3

The page is not returned there is no error and the page is stopped being
parsed.

Any ideas?

My handler function:
Function errorHandler($errno, $errstr, $errfile, $errline)
{
print($errstr);
print($errfile);
print("Line: " . $errline);
 // Exit the script to fix the error.
 exit();
}
// Set the error handler.
set_error_handler("errorHandler");


--- End Message ---
--- Begin Message ---
At 04:36 PM 2/9/2002 -0800, Charlie Killian wrote:
>But others like not including a semicolon returns nothing:
>$d = 3
>
>The page is not returned there is no error and the page is stopped being
>parsed.

This is by design.  Quoting from http://bugs.php.net/bug.php?id=9386:

<quote>
[17 Jun 2001 4:56am] [EMAIL PROTECTED]
FATAL errors are not passed through user error handlers due to the fact
the engine may be unstable and this could present security issues,
instead the engine reports the error via its default mechanism as
described in php.ini and then shutsdown as gracefully as possible.

- James
</quote>

Sounds like you have your php.ini configured to not display errors, since 
you are not seeing the parse error message in your HTML output...

--- End Message ---
--- Begin Message ---
Thanks Mike. I updated display_errors = On and now I see the errors.

Charlie


> Sounds like you have your php.ini configured to not display errors, since
> you are not seeing the parse error message in your HTML output...
>


--- End Message ---
--- Begin Message ---
Hi!

Is i possible to make a function that makes a prev and a next link on the
page if it returns, say over 20 rows or hits in a query? Could anyone give
me a hint if they know how to?

Best regrds Raymond


--- End Message ---
--- Begin Message ---
http://phpclasses.upperdesign.com/browse.html/package/371/

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
--- End Message ---
--- Begin Message ---
Hi,

I was wondering what you would do in this situation...

I have a form, with 196 fields that I need entered into a database.
But the form and it's contents need to be changed every day,
and I need to store the old data in an archive so it can be accessed
at a later date.

That means that after a week, I'm going to have a tonne of data.
Catch is, this form will be used every day for about 3 years.
I'm pretty certain MySQL can handle it, but I need to know, what
would be the best way to store this data?

I've set up a calendar, that will take the user to a different version
of the form every day.
Accesible here:
http://www.fernwoodwhc.com/shit/calendar.php
And the form I'm talking about is here:
http://www.fernwoodwhc.com/tech.php

Here's a copy (minus passwords) of my form...
I'm sure that there's a better way to do it...


<html>
<?
    $usr = "username";
    $pwd = "password";
    $db = "fmms";
    $host = "localhost";

    $cid = mysql_connect($host,$usr,$pwd);
    if (!$cid) { echo("ERROR: " . mysql_error() . "\n");    }

        $SQL = " INSERT INTO tech";
        $SQL = $SQL . " ('fs6, num6, sur6, giv6, apt6, ph6, c6, fs63, num63,
sur63, giv63, apt63, ph63, c63, fs7, num7, sur7, giv7, apt7, ph7, c7, fs73,
num73, sur73, giv73, apt73, ph73, c73, fs8, num8, sur8, giv8, apt8, ph8, c8,
fs83, num83, sur83, giv83, apt83, ph83, c83, fs9, num9, sur9, giv9, apt9,
ph9, c9, fs93, num93, sur93, giv93, apt93, ph93, c93, fs10, num10, sur10,
giv10, apt10, ph10, c10, fs103, num103, sur103, giv103, apt103, ph103, c103,
fs11, num11, sur11, giv11, apt11, ph11, c11, fs113, num113, sur113, giv113,
apt113, ph113, c113, fs12, num12, sur12, giv12, apt12, ph12, c12, fs123,
num123, sur123, giv123, apt123, ph123, c123, fs1, num1, sur1, giv1, apt1,
ph1, c1, fs13, num13, sur13, giv13, apt13, ph13, c13, fs2, num2, sur2, giv2,
apt2, ph2, c2, fs23, num23, sur23, giv23, apt23, ph23, c23, fs3, num3, sur3,
giv3, apt3, ph3, c3, fs33, num33, sur33, giv33, apt33, ph33, c33, fs4, num4,
sur4, giv4, apt4, ph4, c4, fs43, num43, sur43, giv43, apt43, ph43, c43, fs5,
num5, sur5, giv5, apt5, ph5, c5, fs53, num53, sur53, giv53, apt53, ph53,
c53, fs6p, num6p, sur6p, giv6p, apt6p, ph6p, c6p, fs63p, num63p, sur63p,
giv63p, apt6p3, ph63p, c63p, fs7p, num7p, sur7p, giv7p, apt7p, ph7p, c7p,
fs73p, num73p, sur73p, giv73p, apt7p3, ph73p, c73p') VALUES ";

  $SQL = $SQL . " ('$fs6', '$num6', '$sur6', '$giv6', '$apt6', '$ph6',
'$c6', '$fs63', '$num63', '$sur63', '$giv63', '$apt63', '$ph63', '$c63',
'$fs7', '$num7', '$sur7', '$giv7', '$apt7', '$ph7', '$c7', '$fs73',
'$num73', '$sur73', '$giv73', '$apt73', '$ph73', '$c73', '$fs8', '$num8',
'$sur8', '$giv8', '$apt8', '$ph8', '$c8', '$fs83', '$num83', '$sur83',
'$giv83', '$apt83', '$ph83', '$c83', '$fs9', '$num9', '$sur9', '$giv9',
'$apt9', '$ph9', '$c9', '$fs93', '$num93', '$sur93', '$giv93', '$apt93',
'$ph93', '$c93', '$fs10', '$num10', '$sur10', '$giv10', '$apt10', '$ph10',
'$c10', '$fs103', '$num103', '$sur103', '$giv103', '$apt103', '$ph103',
'$c103', '$fs11', '$num11', '$sur11', '$giv11', '$apt11', '$ph11', '$c11',
'$fs113', '$num113', '$sur113', '$giv113', '$apt113', '$ph113', '$c113',
'$fs12', '$num12', '$sur12', '$giv12', '$apt12', '$ph12', '$c12', '$fs123',
'$num123', '$sur123', '$giv123', '$apt123', '$ph123', '$c123', '$fs1',
'$num1', '$sur1', '$giv1', '$apt1', '$ph1', '$c1', '$fs13', '$num13',
'$sur13', '$giv13', '$apt13', '$ph13', '$c13', '$fs2', '$num2', '$sur2',
'$giv2', '$apt2', '$ph2', '$c2', '$fs23', '$num23', '$sur23', '$giv23',
'$apt23', '$ph23', '$c23', '$fs3', '$num3', '$sur3', '$giv3', '$apt3',
'$ph3', '$c3', '$fs33', '$num33', '$sur33', '$giv33', '$apt33', '$ph33',
'$c33', '$fs4', '$num4', '$sur4', '$giv4', '$apt4', '$ph4', '$c4', '$fs43',
'$num43', '$sur43', '$giv43', '$apt43', '$ph43', '$c43', '$fs5', '$num5',
'$sur5', '$giv5', '$apt5', '$ph5', '$c5', '$fs53', '$num53', '$sur53',
'$giv53', '$apt53', '$ph53', '$c53', '$fs6p', '$num6p', '$sur6p', '$giv6p',
'$apt6p', '$ph6p', '$c6p', '$fs63p', '$num63p', '$sur63p', '$giv63p',
'$apt6p3', '$ph63p', '$c63p', '$fs7p', '$num7p', '$sur7p', '$giv7p',
'$apt7p', '$ph7p', '$c7p', '$fs73p', '$num73p', '$sur73p', '$giv73p',
'$apt7p3', '$ph73p', '$c73p') ";

  $result = mysql_db_query($db,"$SQL",$cid);
        if (!$result) { echo("ERROR: " . mysql_error() . "\n$SQL\n");    }
        // echo ("Data Added\n");
 mysql_close($cid);

    }
?>

<head>
<STYLE TYPE="TEXT/CSS">
BODY {
 scrollbar-3dlight-color : #3893CF;
 scrollbar-arrow-color : #000000;
 scrollbar-base-color : #000000;
 scrollbar-darkshadow-color : #3893CF;
 scrollbar-face-color : #3893CF;
 scrollbar-highlight-color : #000000;
 scrollbar-shadow-color : #000000;
 scrollbar-track-color : #3893CF;
}
</STYLE>
</head>
<body bgcolor="#3893CF" topmargin="0" leftmargin="0">
<form action="" method="POST">
<table border="0" cellspacing="5" style="border-collapse: collapse"
bordercolor="#111111">
  <tr>
    <td align="center"><b><font size="2">Time</font></b></td>
    <td align="center"><b><font size="2">FW/SP</font></b></td>
    <td align="center"><b><font size="2">#</font></b></td>
    <td align="center"><b><font size="2">Surname</font></b></td>
    <td align="center"><b><font size="2">Given</font></b></td>
    <td align="center"><b><font size="2">Appt</font></b></td>
    <td align="center"><b><font size="2">Phone</font></b></td>
    <td align="center"><b><font size="2">C</font></b></td>
  </tr>
<!-- ### -->

  <tr>
    <td><b><font size="2">6:00 am</font></b></td>
    <td><input type="radio" name="fs6" value="fw"><input type="radio"
name="fs6" value="sp"></td>
    <td><input type="text" name="num6" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur6" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv6" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt6">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph6" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c6" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">6:30 am</font></b></td>
    <td><input type="radio" name="fs63" value="fw"><input type="radio"
name="fs63" value="sp"></td>
    <td><input type="text" name="num63" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur63" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv63" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt63">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
 <td><input type="text" name="ph63" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c63" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">7:00 am</font></b></td>
    <td><input type="radio" name="fs7" value="fw"><input type="radio"
name="fs7" value="sp"></td>
    <td><input type="text" name="num7" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur7" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv7" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt7">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
 <td><input type="text" name="ph7" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c7" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">7:30 am</font></b></td>
    <td><input type="radio" name="fs73" value="fw"><input type="radio"
name="fs73" value="sp"></td>
    <td><input type="text" name="num73" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur73" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv73" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt73">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
 <td><input type="text" name="ph73" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c73" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">8:00 am</font></b></td>
    <td><input type="radio" name="fs8" value="fw"><input type="radio"
name="fs8" value="sp"></td>
    <td><input type="text" name="num8" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur8" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv8" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt8">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph8" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c8" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">8:30 am</font></b></td>
    <td><input type="radio" name="fs83" value="fw"><input type="radio"
name="fs83" value="sp"></td>
    <td><input type="text" name="num83" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur83" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv83" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt83">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph83" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c83" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">9:00 am</font></b></td>
    <td><input type="radio" name="fs9" value="fw"><input type="radio"
name="fs9" value="sp"></td>
    <td><input type="text" name="num9" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur9" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv9" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt9">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph9" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c9" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">9:30 am</font></b></td>
    <td><input type="radio" name="fs93" value="fw"><input type="radio"
name="fs93" value="sp"></td>
    <td><input type="text" name="num93" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur93" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv93" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt93">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph93" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c93" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">10:00 am</font></b></td>
    <td><input type="radio" name="fs10" value="fw"><input type="radio"
name="fs10" value="sp"></td>
    <td><input type="text" name="num10" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur10" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv10" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt10">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph10" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c10" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">10:30 am</font></b></td>
    <td><input type="radio" name="fs103" value="fw"><input type="radio"
name="fs103" value="sp"></td>
    <td><input type="text" name="num103" size="4" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur103" size="8" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv103" size="8" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt103">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph103" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c103" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">11:00 am</font></b></td>
    <td><input type="radio" name="fs11" value="fw"><input type="radio"
name="fs11" value="sp"></td>
    <td><input type="text" name="num11" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur11" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv11" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt11">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph11" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c11" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">11:30 am</font></b></td>
    <td><input type="radio" name="fs113" value="fw"><input type="radio"
name="fs113" value="sp"></td>
    <td><input type="text" name="num113" size="4" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur113" size="8" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv113" size="8" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt113">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph113" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c113" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">12:00 pm</font></b></td>
    <td><input type="radio" name="fs12" value="fw"><input type="radio"
name="fs12" value="sp"></td>
    <td><input type="text" name="num12" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur12" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv12" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt12">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph12" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c12" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">12:30 pm</font></b></td>
    <td><input type="radio" name="fs123" value="fw"><input type="radio"
name="fs123" value="sp"></td>
    <td><input type="text" name="num123" size="4" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur123" size="8" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv123" size="8" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt123">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph123" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c123" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">1:00 pm</font></b></td>
    <td><input type="radio" name="fs1" value="fw"><input type="radio"
name="fs1" value="sp"></td>
    <td><input type="text" name="num1" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur1" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv1" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt1">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph1" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c1" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">1:30 pm</font></b></td>
    <td><input type="radio" name="fs13" value="fw"><input type="radio"
name="fs13" value="sp"></td>
    <td><input type="text" name="num13" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur13" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv13" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt13">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph13" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c13" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">2:00 pm</font></b></td>
    <td><input type="radio" name="fs2" value="fw"><input type="radio"
name="fs2" value="sp"></td>
    <td><input type="text" name="num2" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur2" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv2" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt2">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph2" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c2" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">2:30 pm</font></b></td>
    <td><input type="radio" name="fs23" value="fw"><input type="radio"
name="fs23" value="sp"></td>
    <td><input type="text" name="num23" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur23" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv23" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt23">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph23" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c23" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">3:00 pm</font></b></td>
    <td><input type="radio" name="fs3" value="fw"><input type="radio"
name="fs3" value="sp"></td>
    <td><input type="text" name="num3" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur3" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv3" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt3">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph3" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c3" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">3:30 pm</font></b></td>
    <td><input type="radio" name="fs33" value="fw"><input type="radio"
name="fs33" value="sp"></td>
    <td><input type="text" name="num33" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur33" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv33" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt33">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph33" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c33" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">4:00 pm</font></b></td>
    <td><input type="radio" name="fs4" value="fw"><input type="radio"
name="fs4" value="sp"></td>
    <td><input type="text" name="num4" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur4" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv4" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt4">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph4" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c4" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">4:30 pm</font></b></td>
    <td><input type="radio" name="fs43" value="fw"><input type="radio"
name="fs43" value="sp"></td>
    <td><input type="text" name="num43" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur43" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv43" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt43">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph43" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c43" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">5:00 pm</font></b></td>
    <td><input type="radio" name="fs5" value="fw"><input type="radio"
name="fs5" value="sp"></td>
    <td><input type="text" name="num5" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur5" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv5" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt5">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph5" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c5" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">5:30 pm</font></b></td>
    <td><input type="radio" name="fs53" value="fw"><input type="radio"
name="fs53" value="sp"></td>
    <td><input type="text" name="num53" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur53" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv53" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt53">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph53" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c53" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">6:00 pm</font></b></td>
    <td><input type="radio" name="fs6p" value="fw"><input type="radio"
name="fs6p" value="sp"></td>
    <td><input type="text" name="num6p" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur6p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv6p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt6p">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph6p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c6p" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">6:30 pm</font></b></td>
    <td><input type="radio" name="fs63p" value="fw"><input type="radio"
name="fs63p" value="sp"></td>
    <td><input type="text" name="num63p" size="4" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur63p" size="8" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv63p" size="8" style="border-style:
solid; border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt63p">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph63p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c63p" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">7:00 pm</font></b></td>
    <td><input type="radio" name="fs7p" value="fw"><input type="radio"
name="fs7p" value="sp"></td>
    <td><input type="text" name="num7p" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur7p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv7p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt7p">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph7p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c7p" value="ON"></td>
  </tr>
<!-- ### -->
  <tr>
    <td><b><font size="2">7:30 pm</font></b></td>
    <td><input type="radio" name="fs73p" value="fw"><input type="radio"
name="fs73p" value="sp"></td>
    <td><input type="text" name="num7p" size="4" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="sur7p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="text" name="giv7p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><select size="1" name="apt7p">
        <option selected value="1" style="border-style: solid; border-width:
1; background-color:#3893CF">1</option><option value="2"
style="border-style: solid; border-width: 1;
background-color:#3893CF">2</option><option value="re" style="border-style:
solid; border-width: 1; background-color:#3893CF">Re</option></select>
    </td>
    <td><input type="text" name="ph7p" size="8" style="border-style: solid;
border-width: 1; background-color:#3893CF"></td>
    <td><input type="checkbox" name="c7p" value="ON"></td>
  </tr>
</table>
<p><input type="submit" value="Submit" name="submit"></p>
</form>
</body>
</html>


Thanks for your help in advance!

- Liam



--- End Message ---
--- Begin Message ---
I have a newssystem on my homepage but you have to scroll rather long to get
to the last post now, how do I limit it to show like 10 posts per page or
something like that? With one document that is, I don't want to have a bunch
of files with 10 posts in each .. :)


--- End Message ---
--- Begin Message ---
Arik,
Cute little applet.
For your php project, I still think a map of all the known breweries would
be nice.  Everyone could put in their favorite.
Hugh
----- Original Message -----
From: "Arik Ashepa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 09, 2002 10:19 AM
Subject: [PHP] free usefull piece of code for everybody!


> a random image maker based on the gd library (PNG)...
>


----------------------------------------------------------------------------
----


> <?php
> function setPenColors($theimage) {
> global $redpen, $greenpen, $bluepen, $blackpen, $whitepen, $yellowpen,
$aquapen, $fuschiapen, $greypen, $silverpen, $tealpen, $limepen, $navypen,
$purplepen, $maroonpen, $olivepen;
> $redpen = ImageColorAllocate($theimage, 255, 0, 0);
> $greenpen = ImageColorAllocate($theimage, 0, 153, 0);
> $bluepen = ImageColorAllocate($theimage, 0, 0, 255);
> $blackpen = ImageColorAllocate($theimage, 0, 0, 0);
> $whitepen = ImageColorAllocate($theimage, 255, 255, 255);
> $yellowpen = ImageColorAllocate($theimage, 255, 255, 0);
> $aquapen = ImageColorAllocate($theimage, 0, 255, 255);
> $fuschiapen = ImageColorAllocate($theimage, 255, 0, 255);
> $greypen = ImageColorAllocate($theimage, 153, 153, 153);
> $silverpen = ImageColorAllocate($theimage, 204, 204, 204);
> $tealpen = ImageColorAllocate($theimage, 0, 153, 153);
> $limepen = ImageColorAllocate($theimage, 0, 255, 0);
> $navypen = ImageColorAllocate($theimage, 0, 0, 153);
> $purplepen = ImageColorAllocate($theimage, 153, 0, 153);
> $maroonpen = ImageColorAllocate($theimage, 153, 0, 0);
> $olivepen = ImageColorAllocate($theimage, 153, 153, 0);
> }
> $servername = getenv("SERVER_NAME");
>
> // set the content type
> header("Content-type:  image/png");
>
> $imageWidth = 118;
> $imageHeight = 136;
>
> // create image
> $image = imageCreate($imageWidth, $imageHeight);
>
> $bgcolor = ImageColorAllocate($image, 0, 0, 0);
> $fgcolor = ImageColorAllocate($image, 255, 255, 255);
> setPenColors($image);
>
> srand ((double) microtime() * 1000000);
> $rndnum = rand(10,60);
> $oldx = rand(1,$imageWidth-2);
> $oldy = rand(1,$imageHeight-18);
> $pencolor = array
($redpen,$greenpen,$bluepen,blackpen,$whitepen,$yellowpen,$aquapen,$fuschiap
en,$greypen,$silverpen,$tealpen,$limepen,$navypen,$purplepen,$maroonpen,$oli
vepen);
>
> $rndpen = rand(0,15);
> ImageRectangle($image, 0, 0, $imageWidth-1, $imageHeight-17,
$pencolor[$rndpen]);
>
> for ($i=0; $i<$rndnum; $i++) {
> $rndpen = rand(0,15);
> $newx = rand(1,$imageWidth-2);
> $newy = rand(1,$imageHeight-18);
> ImageLine ($image, $oldx, $oldy, $newx, $newy, $pencolor[$rndpen]);
> $oldx = $newx;
> $oldy = $newy;
> }
>
> ImageString($image,2, 4, $imageHeight-14,  "Random Image Maker",
$limepen);
>
> // create an interlaced image for better loading in the browser
> imageInterlace($image, 1);
>
> // mark background color as being transparent
> imageColorTransparent($image, $bgcolor);
>
> // now send the picture to the client (this outputs all image data
directly)
> imagePNG($image);
>
>
> ?>
>


----------------------------------------------------------------------------
----


> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---

Reply via email to