PHP code to call Database for Image Size
Posted: Wed Nov 12, 2008 4:07 pm
Hi All, Am new here, Nice place you have!
I am wondering if anyone could assist me / point me in the correct direction,
i have a Ecommerce Site, that was Bspoked designed for me, But the developer has moved on, and no longer does webwork,
I know a fair bit about php and database, but everything i seem to be searching or trying seems to be failing for me on this occasion, and my heads hurting from hitting it against the desk!
What i have at the moment, is a Site that has images in the size of width="250" height="192" (all images fit into this frame)
What my outcome is: To have a Multiple choice of Landscape or Portrait image, or possible a custom size resolution
i have not come here asking for someone to do my work for me, but to maybe help me in starting this off or pointing me
in the right direction to starting this off,
My main hold back if the sort of PHP code that would work with this, The Database is something i could do,
and to code to another php page for the admin panel to change these is something i can easily handle,
the code i have in my php file is:
I hope you understand what am trying to ask, kind of hard to put together in words,
Much appreciated for any help you can offer,
Thanks
I am wondering if anyone could assist me / point me in the correct direction,
i have a Ecommerce Site, that was Bspoked designed for me, But the developer has moved on, and no longer does webwork,
I know a fair bit about php and database, but everything i seem to be searching or trying seems to be failing for me on this occasion, and my heads hurting from hitting it against the desk!
What i have at the moment, is a Site that has images in the size of width="250" height="192" (all images fit into this frame)
What my outcome is: To have a Multiple choice of Landscape or Portrait image, or possible a custom size resolution
i have not come here asking for someone to do my work for me, but to maybe help me in starting this off or pointing me
in the right direction to starting this off,
My main hold back if the sort of PHP code that would work with this, The Database is something i could do,
and to code to another php page for the admin panel to change these is something i can easily handle,
the code i have in my php file is:
Code: Select all
<tr><td width="250"><img src="{product.mainimage}" alt="{product.name}" width="250" height="192" border="1" align="left" style="margin: 3px 5px 3px 0px;"></td></tr>Much appreciated for any help you can offer,
Thanks