Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.