Guest Posted May 6, 2007 Share Posted May 6, 2007 Hi, I have searched but I can't find the answer. All I want to do is create a new infobox with a clickable image inside. This is what I have but is giving errors <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => 'Zalman CNPS'); new infoBoxHeading($info_box_contents, false, false); <a href="/product_info.php?cPath=21&products_id=28"><img src="/images.php" border=0 ></a> new infoBox($info_box_contents); ?> </td> </tr> I think this should be php not html but don't know how to do it. Please Help Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2007 Share Posted May 7, 2007 Please Anyone? Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2007 Share Posted May 7, 2007 It's ok, I sorted it myself. Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2007 Share Posted May 7, 2007 It's ok, I sorted it myself. OK, I have got this much which is working fine: <?php /* $Id: shopping_cart.php,v 1.18 2003/02/10 22:31:06 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => 'Zalman CNPS'); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="http://www.coolnquiet.co.uk/product_info.php?cPath=21&products_id=28"><img src="images/9700.png" border="0" align="middle" alt="Zalman CNPS Super Aero Flower Cooler"></a><br>'); new infoBox($info_box_contents);?> </td> </tr> I am having trouble centering the image within the box. I know this is probably kids stuff but I haven't matured that much yet. Anyone know how. Thanks folks Link to comment Share on other sites More sharing options...
squalid Posted May 7, 2007 Share Posted May 7, 2007 http://www.oscommerce.info/docs/english/e_...session_id.html have a look there for info on how to make link php, with html link your sessions may not be carried over Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.