Re: [PHP] Array...

2001-01-15 Thread Mark Maggelet
On Mon, 15 Jan 2001 13:57:04 -0800 (PST), jeremy brand ([EMAIL PROTECTED]) wrote: for ($i=100; $i0; $i++) print "OPTION VALUE=\\\"$i\\\"/OPTION\n"; But, I presume you would rather do this: for ($i=100; $i0; $i++) ^^^ should be $i-- print "OPTION

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Mark Maggelet
http://www.binarycloud.com/code_standard.html http://marc.theaimsgroup.com/?l=php-pearm=97603413001842w=2 Best Practices: PHP Coding Style : http://phpbuilder.com/columns/tim20010101.php3 Smart Architectures in PHP :

Re: [PHP] on style (was mixing PHP and HTML code)

2001-01-12 Thread Mark Maggelet
i do think that the code standard has some good elements to it, but it goes too far to specify a 4-space indent and to specify no spaces within if (condition) statements. I don't think it goes too far (I think it should be 3 spaces tho), but until the php guys publish some official style

RE: [PHP] mixing HTML and PHP code

2001-01-12 Thread Mark Maggelet
I think you missed something: ? connect_to_database(); parse_query(); execute_query(); ? TABLE ? while (fetch_row_from_query()){ $output = data_from_fetched_row(); $more_output = more_data_from_fetched_row();? TR TD?echo $output?/TD TD?echo $more_output?/TD /TR ?}?

<    1   2