|
Posted by Sentinel on 10/13/75 11:28
JDS 05.10.2005 15:52:30
<pan.2005.10.05.13.52.30.102742@example.invalid>
jeffrey@example.invalid alt.php JDS
> On Wed, 05 Oct 2005 13:26:33 +0200, Sentinel wrote:
>
> > php code
>
> ...is a horrible jumbled mess that I don't have time to decipher.
>
i saw whel i posted...
> 1) Don't print or echo lines of HTML, it just makes things very very
> messy when there are large blocks of HTML. Instead, drop out of PHP
> and write the HTML as plain HTML. Example:
>
> <?php
> echo "blah\n";
> ?>
> <h1>blah blah</h1>
> <h2><? echo $header2 ?></h2>
the reason why i echo all the code is because i have a program ih which
i write html code first, then mark what i need and
>
> etc...
>
>
> 2) Use careful, proper, consistent formatting -- indents in consistent
> places, brackets, curlies, and parens in consistent places.
allready doing that- it's easyer to get around the code...
> I think
> that some of the mess may be an artifact of your news reader breaking
> lines at around 80 chars. If this is the case, then dump the code
> into a plain text file and put it on the web somewhere so I can look
> at it in my browser.
see http://www.elma.hr/phpcode.htm
>
> As for your questions, you do know how many rows there are. That data
> is in two places:
>
> count($row_menuheader);
this returns columns number
>
> and
>
> mysql_num_rows($r_menuheader);
this is what i needed, thanks
>
>
> Another suggetion, go to the PHP.net website and cut and paste their
> code for looping through MySQL data sets. Then change the names to
> suit.
>
> later...
will do.
i am new to php so any help is welcome...
Thanks
--
Will work for bandwidth!
Navigation:
[Reply to this message]
|