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