Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

how to open a large image from the link of thumbnail photo

Links for php scripts

Moderators: macek, egami, gesf

how to open a large image from the link of thumbnail photo

Postby begeiste » Wed Jul 28, 2004 9:32 am

Dear Sir;
I have created a php page of displaying a thumbnail photos, but I don't know how to make a link on the dynamic image cell for opening a large size of the image in either a blank window or detail php page. Can you help me out for this problem? Thanks.

<td width="118"><img src="<?php echo $row_rst_results['images']; ?>" alt="dynamicimage" name="imageplace" id="imageplace" /></td>
begeiste
New php-forum User
New php-forum User
 
Posts: 83
Joined: Thu Jun 03, 2004 11:27 am

Postby begeiste » Wed Jul 28, 2004 3:15 pm

Please please help me. Any input will be appreciated.
begeiste
New php-forum User
New php-forum User
 
Posts: 83
Joined: Thu Jun 03, 2004 11:27 am

Re: how to open a large image from the link of thumbnail pho

Postby ruturajv » Wed Jul 28, 2004 7:41 pm

begeiste wrote:Dear Sir;
I have created a php page of displaying a thumbnail photos, but I don't know how to make a link on the dynamic image cell for opening a large size of the image in either a blank window or detail php page. Can you help me out for this problem? Thanks.

<td width="118"><img src="<?php echo $row_rst_results['images']; ?>" alt="dynamicimage" name="imageplace" id="imageplace" /></td>


first NO SIR AND MADAMS... ! :)

just make a hyper link in this fashion
Code: Select all
<td width="118"><a href="<?php echo $row_rst_results['pathtobigimage']; ?>"><img src="<?php echo $row_rst_results['images']; ?>" alt="dynamicimage" name="imageplace" id="imageplace" border="0" /></a></td>
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby begeiste » Thu Jul 29, 2004 8:43 am

The images folder stores thumb_3d1.jpg and L_3d1.jpg(big image)as well, if the situation like that how can I make a link?

If I make a link .....['bigimage'], it won't be dynamic, since there is only one images folder that stores thumb and big images. I hope this won't make you confused. Do we still have a solution for it?
Thanks.
begeiste
New php-forum User
New php-forum User
 
Posts: 83
Joined: Thu Jun 03, 2004 11:27 am

Postby ruturajv » Sun Aug 01, 2004 7:45 pm

Code: Select all
<td width="118"><a href="<?php echo $row_rst_results['pathtobigimage']; ?>"><img src="<?php echo ('thumb_' . $row_rst_results['pathtobigimage']); ?>" alt="dynamicimage" name="imageplace" id="imageplace" border="0" /></a></td>


I think that should solve the problem
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby begeiste » Mon Aug 02, 2004 9:12 am

I am sorry. It still didn't work out. Basically the L_image and thumb_image are all stored in the same folder call" images", here are codes that you taught me:

<td width="86"><a href="<?php echo $row_rst_results['images'];?>" target="_blank"><img src="<?php echo ('thumb_' . $row_rst_results['images']); ?>" alt="dynamicimage" name="imageplace" id="imageplace" border="0" /></a></td>

But I got this:http://www.symphonyimage.com/admin/dis.php

Please let me know if I am wrong. Thanks so much.
begeiste
New php-forum User
New php-forum User
 
Posts: 83
Joined: Thu Jun 03, 2004 11:27 am

Postby WiZARD » Wed Aug 04, 2004 2:35 am

maby need set some folder whaere you store youre images?
maby cause you have a wrong path to the image you nothing see?
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby ruturajv » Wed Aug 04, 2004 7:15 pm

Ok now i assume you store images in "images" folder
and in the database you have "image1.jpg"
Code: Select all
<td width="118"><a href="<?php echo 'images/'.$row_rst_results['pathtobigimage']; ?>"><img src="images/<?php echo ('thumb_' . $row_rst_results['pathtobigimage']); ?>" alt="dynamicimage" name="imageplace" id="imageplace" border="0" /></a></td>
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby WiZARD » Thu Aug 05, 2004 12:33 am

:D :-D :D :-? :D
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP Scripts

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron