Jump to content

PHP image slideshow on dynamic pages


jetilux

Recommended Posts

Hello everyone,

 

I'm working on a site for my school project. However, I'm having a little trouble thinking about this issue and how to get it working. I dont necessarily have the code, but i can post what i/ve tried but its not working.

 

I have created this page, for example, www.site.com/students.php

 

In this students.php, it can be directed to /students.php?id=1, where the id ranges. However, in the page I have got everything else working, such as linking ID to name etc which is all working smoothly. However is there a way to create an image slideshow for each different id page, so that when I go to /students.php?id=1, it would recognize the id and retrieve images from a folder with that id?

 

<?php
           '<img src="/img/'.$row['shortname'].'/1.png">

 

This is just a small code which I'm trying to show how to store and tell the slideshow to retrive the pictures.

 

any help would be greatly appreciated, thanks.

Link to comment
https://forums.phpfreaks.com/topic/274623-php-image-slideshow-on-dynamic-pages/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.