Guest Posted August 2, 2006 Posted August 2, 2006 I'm trying to resize images WITHOUT using the admin panel and Small Image, Heading Image, etc.... The code I have is: <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> I'm trying to put in resizing command based on my HTML background (I'm new to PHP). I tried this: <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE,'125','33') . '</a>'; ?></td> ... but it errors out. Any help is greatly appreciated. Cheers, Wolfe.
mtechama Posted August 2, 2006 Posted August 2, 2006 I'm trying to resize images WITHOUT using the admin panel and Small Image, Heading Image, etc.... The code I have is: <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> I'm trying to put in resizing command based on my HTML background (I'm new to PHP). I tried this: <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE,'125','33') . '</a>'; ?></td> ... but it errors out. Any help is greatly appreciated. Cheers, Wolfe. The reason you have errors look at the new code you have to many ' in that line Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP!
Guest Posted August 3, 2006 Posted August 3, 2006 The reason you have errors look at the new code you have to many ' in that line Maybe I've been looking at code too long, but I'm still not seeing where there's an extra ' in the code below: <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE,'125','33') . '</a>'; ?></td> Anyone?
Guest Posted August 3, 2006 Posted August 3, 2006 you should check the function parameters before using it. tep_image_button takes 3 parameters why you're passing 4 with irrelevant arguments?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.