Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Resizing Images in PHP


Guest

Recommended Posts

Posted

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.

Posted
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!

Posted
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?

Posted

you should check the function parameters before using it. tep_image_button takes 3 parameters why you're passing 4 with irrelevant arguments?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...