vinaya Posted December 22, 2012 Posted December 22, 2012 Hi, I want to add the image in the blank space of front page. Please help me. Please find files attached.
multimixer Posted December 22, 2012 Posted December 22, 2012 you can search for an add-on called "modular front page" or you can manually modify file catalog/index.php, the front page is the section that start after } else { // default page My community profile | Template system for osCommerce - New: Responsive | Feedback channel
vinaya Posted December 22, 2012 Author Posted December 22, 2012 Please help me to insert this code instead of the default page.I am getting parse error. <?php } else { <table border="0" cellspacing="0" cellpadding="0" class="w710" align="center"> <tr> <? $res = tep_db_query("select * from featured where status=1 order by category_id desc"); while ($red = mysql_fetch_array($res)) { show_feat_category($red[category_id]); if (++$trs % 2 == 0) { echo "</tr><tr>"; } else { ?> <td width="16" valign="middle"> <img src="images/strip_repeat.gif" width="1" height="52" /> </td> <? } } } ?> </tr> </table> ?>
www.in.no Posted December 22, 2012 Posted December 22, 2012 you are mixing php and html code without proper escaping.
www.in.no Posted December 22, 2012 Posted December 22, 2012 Like fore example this <?php } else { ?> <table border="0" cellspacing="0" cellpadding="0" class="w710" align="center"> <tr> <?php
Recommended Posts
Archived
This topic is now archived and is closed to further replies.