Jump to content

[SOLVED] Select first row array


jmr3460

Recommended Posts

Hello All,

I am working on a site that uses .jpg images a lot. I have developed the majority of the admin scripts but I need a little help with one of my queries. My images table has  the following fields (id, client_id, vehicle_id, sml_image, lrg_image, feature, del). When I add an account I create a folder for image uploads, then I insert 12 rows of data with the client_id being what the client table id is, then the vehicle_id being what the id is in the vehicle table is. Then I insert for url purposes sml_image1.jpg and increment by one for next rows, the same with the lrg_image.jpg.

 

My home page will require data from one row in the whole table that will have a 1 in the feature column. The first row of each set of vehicle_id's will be my possible feature 1 switch. I want to only select all of the first row of each set of the vehicle_id's.

Can someone help?

Thanks for any help 

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.