jgeoff Posted April 3, 2008 Posted April 3, 2008 Hi - I'm not sure if it's just my lack of PHP knowledge or what, but I'm trying to include some HTML in column_right.php and column_left.php, and despite adding it to the BOTTOM of those PHP files, the browser always places the HTML elements ABOVE the rendered PHP code. I can't show my site because it's password protected and under development, but here's an example... Say I have my column_left.php file, and I want to place contact info there, on the bottom, so it appears on every page: <?php /* $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // {{ buySAFE Module blah blah blah // }} if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ?> <br> ******************************************* I WANT TO PUT SOMETHING HERE ON THE BOTTOM BUT IT ALWAYS APPEARS *ABOVE* ALL THE REST ******************************************* Same for column_right.php -- say I want the Shopping Cart box, then something else (HTML), and then more php boxes...? Any way around this? :blink: Thanks! JG osC v2.2 RC2a w/ no special templates PHP Version 5.2.14 / MySQL 5.0.91-community
germ Posted April 3, 2008 Posted April 3, 2008 osC is table based. Try this code: <tr><td> <br> ******************************************* I WANT TO PUT SOMETHING HERE ON THE BOTTOM BUT IT ALWAYS APPEARS *ABOVE* ALL THE REST ******************************************* </td></tr> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
jgeoff Posted April 3, 2008 Author Posted April 3, 2008 That was it -- thank you, sir! B) osC v2.2 RC2a w/ no special templates PHP Version 5.2.14 / MySQL 5.0.91-community
Recommended Posts
Archived
This topic is now archived and is closed to further replies.