Jump to content

order photos to be displayed on website


conork

Recommended Posts

Hi,

 

Let me explain the coding problem I have:  I have a  script that accesses a db and gets the names of photos to display for a particular webpage.  I can then put a tick on the checkbox and the particular photo will appear on the webpage.  However, I would like to be able to rank these photos so that they are displayed in my chosen order.  So I am trying to create a multidimensional array from some input entered on a form.

 

 

 

The checkboxes are for actual photos and the Order input is for integers to specify the order in which to show them.  I need to be able to assign both variables to 1 row of a multidimensional array.  I am unsure what to do but have being trying various options:

<div class="serviceCell">

<input type='checkbox' name='photosRank[photoid][]' value='91' /> Courtyard Ae...  

<input type='text' size='1'name='photosRank[rank][]' value='' /> Order <img src="./images/help.gif" title="Enter integers (ie. 1,2,3..) to display the images in your chosen order." alt="Enter integers (ie. 1,2,3..) to display the images in your chosen order."/>

</div>

 

I would appreciate some help from anyone who has time to examine the problem.

Thanks

Conor

 

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/205526-order-photos-to-be-displayed-on-website/
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.