well i have learned how to actually make better choices with the php and how
to display certain parts of a page rather than redo the whole page... so i
would have a certain web page with a table for example  and the first row
shows a static text from a db.. lets say its a company name  with a phone
number.. i found i can do:
<tr>
<td>
<?php echo "$company"; ?>
</td>
</tr>
<?php
if(!empty($phone)) {
?>
<tr>
<td>
<?php echo "$phone"; ?>
</td>
</tr>
<?php } else { echo ""}
//on with the table...

i have found that way works better for me on rewriting tables with the same
page... or is there better way... ?


----- Original Message -----
From: "Larry Brown" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 3:32 PM
Subject: RE: [PHP] php and html differences


> 3 or more possible pages from one php page is what php was designed for.
It
> dynamically creates the page depending on what choices the client makes or
> criteria based on what type of browser the user is using or even where the
> client is (subnet).  You may be able to streamline the code though to make
> things easier to follow and shorten the scripts if you only change a
portion
> of the page depending on aforementioned criteria rather then rewriting the
> entire html 3 or more times.  I have never heard of dynamic choices being
> made in frames based on html alone.  A lot of reference books on html tend
> to throw in javascript pieces to help achieve some html authors' desired
> effect.  To my knowledge it isn't part of html though.
>
> Larry S. Brown
> Dimension Networks, Inc.
> (727) 723-8388
>
> -----Original Message-----
> From: Sunfire [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 02, 2003 3:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php and html differences
>
> hi..
>
> i guess this is a php related question (well sort of)  the person i work
> with decided that he was going to edit a few of my php scripts that make a
> web page out of variables and just different conditions that happen in the
> script.. he thought that he could use a gui html editor and edit the
page..
> well it worked and nothing happened bad... he just left any component
alone
> that had a "/" in them next to the name of it.. well the other thing that
> happened was in another script i have there is 3 or so web pages built
into
> the script.. based on what happens from the page thet calls that script
> either one of those 3 pages could be displayed.. well when i told him that
> depending on what happens with the form that calls that page 1 of 3 pages
> can come up because certain things are being tested and so on..
>
> he told me a few things that i dont quite understand (or for that matter i
> dont belive what he says is really true)..
> he said:
> 1. on the instance about testing certain conditions to determine what page
> to show..frames or a frameset can do exactly the same thing...i told him
no
> it didnt (who is right?)
> 2. he asked me in the scripts that have 3 or more pages built into them
how
> was the logo at the top of the page being shown.. i just told him that i
> used normal html and put the logo at the top of the pages.. he said frames
> wont let you do that (who is right??)
>
> so im confused about that one.. he also said that plain html had an if
else
> statement in it.. i never heard of such a thing...
>
> can somebody get me unconfused? and is it not really a good idea to have 3
> or more pages built inside a php script? should the pages be called from
the
> script some way else?
>
> tnx
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003


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

Reply via email to