You are here: Re: Classes, don't follow. « PHP Programming Language « IT news, forums, messages
Re: Classes, don't follow.

Posted by Mark ??;-\) on 11/04/05 05:02

> Email me a copy and I'll take a look. (davidDOThaynes2ATsympaticoDOTca)
>
> -david-
>

Thanks for all your help. I am working on understanding the class. I did
make a little bit of a change and modeled this method on yours. I had to
add the str_pad, because I just can't stand the leading zeros dropping off.
I will work with your class some more tomorrow and try and make it work with
my form.

-Mark

function printMinute() {
echo "<select name=\"Minute\">\n";
foreach ( range(0,55,5) as $option) {
if ( $option == $this->minute) {
echo "<option selected>" . str_pad($option, 2, 0,
STR_PAD_LEFT) . "</option>\n";
}else {
echo "<option>" . str_pad($option, 2, 0, STR_PAD_LEFT) .
"</option>\n";
}
}
echo "</select>\n";
}

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация