Jump to content


images [PHP]


3 replies to this topic

#1 MsTreYe

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 12 July 2005 - 02:55 PM

Hello everybody

I whas searching for a nice script that is easy to edit for a "renders" page.., So i can easy make new category's, and when i add something, (that i can choose the category), and then there's a thumbnail in that category (on renders.php) , and that thumbnail links to the real image..

Realy thank you in advance!
Best regards,
Mike!

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 12 July 2005 - 04:36 PM

I cant think of any pre-made script that you can use for that. But if you know any php at all, you should be able to write it in less then a day.
Simply do something like:
<a href="/larger_pic.php?id=1"><img src="/image/small/test.gif"></a>

/* larger_pic.php... */
<?
$array = array('test.gif', 'other.gif', 'new.jpg');
echo '<img src="/image/large/'.$array[$_GET['id']].'>';
?>


#3 MsTreYe

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 12 July 2005 - 04:57 PM

thats the problem, i started today with trying to make codes myself,, Before i only didt "copy 'nd paste"..

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 13 July 2005 - 01:11 AM

Well, i personally started learning php through the copy/paste method, so theres nothing wrong with that. But if you need more help, we need more info as to what the exact problem is.

From what i can make out of your question, the basic script i provided would work just fine (naturally you'd have to add a lot more to it... but it's a general idea).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users