Image gallery not displaying enlarged image

This is a discussion on "Image gallery not displaying enlarged image" within the PHP Forum section. This forum, and the thread "Image gallery not displaying enlarged image are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 30th, 2006, 22:31
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Image gallery not displaying enlarged image

I am having trouble displaying an enlarged version of a thumbnail image on a new page.

When i click on the thumbnail it opens a new page and is dsupposed to display an enlarged image but it diisplays nothing.

I don't know whhere is causing the problem

This sisplays all the thumbnails and links to to the other page (possibly to do with the hyperlink...not sure)
PHP: Select all

<?php
define 
("NUMCOLS",5);
include_once(
"includes/connection.php");
$res mysql_query("SELECT id,thumb FROM images");
$count 0;
echo 
"<TABLE border=0 id='gallery'>";
while (list(
$id,$thumb) = mysql_fetch_row($res)) {
    if (
$count NUMCOLS == 0) echo "<TR>\n";  # new row
    
echo "<TD><a href='/image/$id'><img src='/gallery/$thumb' style='border:none'></a></TD>\n";
    
$count++;
    if (
$count NUMCOLS == 0) echo "</TR>\n";  # end row
}
# end row if not already ended
if ($count NUMCOLS != 0) {
   while (
$count++ % NUMCOLS) echo "<td>&nbsp;</td>";
   echo 
"</TR>\n";
}
echo 
"</TABLE>";
?>
this is the page where it is supposed to display the enlarge image (totally messed up i'm sure)
PHP: Select all

<?php
include_once("includes/connection.php");
$id $_GET['id'];
$res mysql_query("SELECT * FROM images where id='$id'");
while (
$row mysql_fetch_row($res)) {
echo 
$id
echo 
$row['image'];
}
?>
Reply With Quote

  #2 (permalink)  
Old Aug 30th, 2006, 22:54
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

hey m8 go on my site this is the link and clink on image and tell me if this is wat ya trying to do

http://www.3dmodellingart.co.uk/inde...id=7&Itemid=45
Reply With Quote
  #3 (permalink)  
Old Aug 30th, 2006, 22:58
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Image gallery not displaying enlarged image

exactly what i'm trying to do
Reply With Quote
  #4 (permalink)  
Old Aug 30th, 2006, 23:05
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

ok i have the code but the code is in html so you could make the page php and then where ya want it on ya page you could put a code

<? include "folder_name/gallery.php"; ?> or you could just make a page and make it php and then just put the page on ya main site as a link and should work so tell me if ya want the code

and i will send ya it in pm in a attachment
Reply With Quote
  #5 (permalink)  
Old Aug 30th, 2006, 23:06
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Image gallery not displaying enlarged image

yes please...send it as this is doing my head in now
Reply With Quote
  #6 (permalink)  
Old Aug 30th, 2006, 23:38
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

hey is the code ok
Reply With Quote
  #7 (permalink)  
Old Aug 31st, 2006, 09:36
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Image gallery not displaying enlarged image

you didn't send it
Reply With Quote
  #8 (permalink)  
Old Aug 31st, 2006, 11:24
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

hey ok i send it in attachment her m8 i sent it to ur pm lol but i resend in this thread m8 giuve me 1 sec
Reply With Quote
  #9 (permalink)  
Old Aug 31st, 2006, 11:33
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

hey m8 here ya go this is in attachment as a txt file and its called gallery and all the html is in there so you just need to change the image files and everything to where there saved on ur server or on ur computer.

Last edited by Aaron1988; Aug 31st, 2006 at 13:23.
Reply With Quote
  #10 (permalink)  
Old Aug 31st, 2006, 11:50
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

hey so mate is that ok tell me when ya got ti so i can take attachment down because dont want every wanting it lol only give people if they ask me. Well only if they wanted a gallery like that
Reply With Quote
  #11 (permalink)  
Old Aug 31st, 2006, 13:20
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Image gallery not displaying enlarged image

Yeah i got it...how did you do the pagination for it tho?
Reply With Quote
  #12 (permalink)  
Old Aug 31st, 2006, 13:21
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

ok m8 wat u mean pageination? explain lol not good wid grammer lmao
Reply With Quote
  #13 (permalink)  
Old Aug 31st, 2006, 17:42
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,762
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Image gallery not displaying enlarged image

pagination is the links that show if there is more than one page

i.e. 1, 2, 3, 4,....,100
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #14 (permalink)  
Old Aug 31st, 2006, 17:44
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

ow ok moojoo m8 lol now i understand
Reply With Quote
  #15 (permalink)  
Old Aug 31st, 2006, 17:47
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

hey adrock m8 well it was easy for me to do it like i did it because for that page i used mambo so what i did was made a new page and linked the second page to that but i put it hidden so it wouldnt see the page i added

Last edited by Aaron1988; Sep 1st, 2006 at 11:28.
Reply With Quote
  #16 (permalink)  
Old Sep 1st, 2006, 11:31
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Image gallery not displaying enlarged image

adrock m8 you probably could do it all you would have to do is put in a iframe direct it to the page and it should be like mine is hopefully if not then you could reply some on forum because there are better peopel out there than me that no about iframes and that so they could help you succeed with the gallery i gace ya and the pagination so goodluck

Aaron

And Private Message me if ya need help ok i will surely help ya just explain wat ya want to do and i will most and greatfully help ya in any way i can

Reply With Quote
Reply

Tags
image, gallery, displaying, enlarged

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Gallery Help McG Web Page Design 1 Apr 18th, 2008 01:29
[SOLVED] CSS image gallery Graisbeck Web Page Design 6 Dec 18th, 2007 08:07
Image Gallery Script Help r00tk1ll JavaScript Forum 4 Aug 26th, 2007 23:22
PHP image gallery Maverick25r PHP Forum 2 Oct 12th, 2006 01:16
need an image gallery spellbyte Web Page Design 4 Mar 7th, 2006 13:45


All times are GMT. The time now is 12:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43