ilikephp Posted November 8, 2009 Share Posted November 8, 2009 Hello, Inside my cell or table I need to display 2 php codes, one that should be displayed at the top and another one at the bottom: How can I do it plz? Here are the codes... <td width="212" align="left" valign="top" bgcolor="#FFFFFF"><?PHP include "phpFiles/top.php"; ?></td> and I need to add another php code that should be displayed at the bottom of the cell, which is: <?PHP include "phpFiles/bottom.php"; ?> Link to comment https://forums.phpfreaks.com/topic/180757-display-2-php-codes-at-the-top-bottom-of-a-cell/ Share on other sites More sharing options...
taquitosensei Posted November 8, 2009 Share Posted November 8, 2009 rename your file to whateverthenameis.php and the PHP is lower case <td width="212" align="left" valign="top" bgcolor="#FFFFFF"><?php include "phpFiles/top.php"; ?></td> that should do it Link to comment https://forums.phpfreaks.com/topic/180757-display-2-php-codes-at-the-top-bottom-of-a-cell/#findComment-953647 Share on other sites More sharing options...
ilikephp Posted November 8, 2009 Author Share Posted November 8, 2009 Thx for help! my prob is that I need to display these 2 codes in one cell the first 1 at the top and the bottom.php at the bottom of the same cell: <?php include "phpFiles/top.php"; ?> <?php include "phpFiles/bottom.php"; ?> so inside the bottom.php there is a picture and inside the top there is another picture, and when I write the 2 php codes the pictures will be called and will be displayed. Link to comment https://forums.phpfreaks.com/topic/180757-display-2-php-codes-at-the-top-bottom-of-a-cell/#findComment-953648 Share on other sites More sharing options...
wildteen88 Posted November 8, 2009 Share Posted November 8, 2009 Place both lines within your <td></td> tags. <td width="212" align="left" valign="top" bgcolor="#FFFFFF"> <?php include "phpFiles/top.php"; ?> Text for cell here <?php include "phpFiles/bottom.php"; ?> </td> Or do <tr> <td><?php include "phpFiles/top.php"; ?></td> <td width="212" align="left" valign="top" bgcolor="#FFFFFF"> Text for cell here <td><?php include "phpFiles/bottom.php"; ?></td> </td> How images/text are positioned on your web page is controlled by HTML/CSS. Link to comment https://forums.phpfreaks.com/topic/180757-display-2-php-codes-at-the-top-bottom-of-a-cell/#findComment-953650 Share on other sites More sharing options...
ilikephp Posted November 8, 2009 Author Share Posted November 8, 2009 I cannot add valign="bottom" for the second php code ? because when the height of my cell is enlarged, it will be stucked in the bottom. Thx Link to comment https://forums.phpfreaks.com/topic/180757-display-2-php-codes-at-the-top-bottom-of-a-cell/#findComment-953695 Share on other sites More sharing options...
chauffeur Posted November 9, 2009 Share Posted November 9, 2009 you're going to have to use a cell (table) and split it 3 rows. set the borders to 0 (invis) and then set the table height to accomplish your goal. Link to comment https://forums.phpfreaks.com/topic/180757-display-2-php-codes-at-the-top-bottom-of-a-cell/#findComment-953882 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.