FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Space mistery
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Space mistery [message #176946 is a reply to message #176945] Wed, 08 February 2012 18:06 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 2/8/2012 12:00 PM, John wrote:
> Hello again,
>
> does anybody have a clue of what could be the problem in the following
> code :
>
> // calling sequence
>
> <html><body>
> <FONT face="Arial Black" size="3" color="#0000FF">
> <center>
> ATTENZIONE<br></FONT>
> </body></html>
> <?php
> include('tabelle/ATTE/ATTE6/ATTE6.php');
> include('tabelle/ATTE/ATTE7/ATTE7.php');
> include('tabelle/ATTE/ATTE8/ATTE8.php');
> ?>
>
>
> ATTE6, ATTE7 + ATTE8 have a similar code, differing only those parts
> carrying the ID name (ATTEx) i.e. text copied and replaced :
>
>
> // main progam ATTE8.php
>
> <?php
> require('ATTE6init.php'); // initialization of variables
> $tab_html = '<center>&nbsp;<br>&nbsp;<br><table><tr><td><FONT
> face="Arial" size="2">';
> echo $tab_html; // if I comment this line, the title touches the table
> above <only God knows why>
>
> $tab_html .= '<span style="background-color:
> #FFFF00">'.$titolo.'</span></FONT></td></tr></table>';
> echo $tab_html;
>
> $tab_html = '<table border="1"><tr><td>'.$cross.'</td>';
> //echo $tab_html;
>
> for ($j=0; $j < $numcols; $j++) {
> $tab_html .= '<td align="right" bgcolor="#DDDDFF"><b>'.$coltit[$j] .
> '</b></td>' ;
> }
> $tab_html .= '</tr>';
> echo $tab_html;
> // End titoli di colonna
>
>
> the symptons are that if one displays more than one table, one after the
> other, as specified in the calling sequence, the space between the title
> and the table is increased by 3 o 4 spaces, while it shouldnt have any
> additional space (&nbsp;<br>).
>
> The last table however is always displayed correctly, so in the case on
> one single table, there's no perception of this error.
>
> Thanks for any feedback.
>
> John.

Look at your generated html. If it's what you expected, try an HTML
newsgroup. If it isn't, figure out why your PHP code isn't generating
the HTML you expect.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Local vs. hosted connection
Next Topic: session array not available in popup?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 06:59:28 GMT 2024

Total time taken to generate the page: 0.05947 seconds