Hello,
I am fairly new to PHP and was hoping you guys could get me started. I am an IT guy with an server/network infrastructure background and HTML experience. However, PHP is new to me. I have some programming knowledge such as how variables are defined and such. I am setting up OSCommerce and have everything installed. I want to start adding content to my main page and not sure how to handle the formatting. For example - the opening text on the page is defined by the variable MAIN_TEXT in one file and another file ECHOs that line out. I can figure out how to change simple things like the text, but I want to get a bit more fancier and start adding images and possible flash content. With HTML I am used to just typing away in an HTML editor and WYSIWYG type interface. In this example below.. I want a bunch of images and different formatted text after it echo’s the TEXT_MAIN. If someone could point me to some reading on this subject (or examples) it would be greatly appreciated. I cant just paste in HTML code, can I ?
<td class="main"><?php echo TEXT_MAIN; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
</tr>
<?php
include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);
?>
</table></td>
</tr>
</table></td>
<?php
}
?>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>