Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7825533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:03:06+00:00 2026-06-02T09:03:06+00:00

Please see the Image below and you will get the context related to my

  • 0

Please see the Image below and you will get the context related to my question .

enter image description here

The web site is a Site for talented Photographers where they can Upload Pictures and allow others to see what they have taken .

I am struck Up in my work , due to a design Issue .

A user ( No registration required ) can open my Website and Upload details like Name , Mobile , description , Image (The same user can upload different images ) at which mobile number is mantadatory field . so while Uploading the Picture , i am appending it with Mobile Number + FileName.jpg , and the Image will be stored inside a folder inside my server and the remaining details like mobile num , desc , name –etc will be Stored inside MYSQL Database . (This is one part and its completed )

2nd part is
On Page start up , i am getting all the images (latest 20 fixed ) from the that folder and showing it on the page .

So when any user clicks on a particulr Image i need to show the deetails like Desc , Name , —etc , so on onclick event of that image , i am picking up the Mobile number from the image clicked and making a search in Database . (Now there is a problem here ) that is , A same user ( that is with same mobile number ) can upload different pictures to the web site , so the search using the Mobile number will give me many results .

The picture name format is 83746787695iokI.jpg .

I am ready to chAange any format , so please tell how this can be solved

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:03:08+00:00Added an answer on June 2, 2026 at 9:03 am

    Given a filename 83746787695iokI.jpg you should be able to parse the uploader phone number and the original filename, then query your table of photos using those values. A regex for that could be:

    /^([0-9]{11})(.+)\.jpg$/
    

    Having said that, you should consider assigning a unique identifier to each photo and use it to name your saved files. An id column in MySQL could look like this:

    id INT NOT NULL AUTO_INCREMENT
    

    After insertion, get the id of the new row (LAST_INSERT_ID() in MySQL) and save your file with its name being #{id}.jpg.

    Note that the autoincremented id is a predictable integer, your filenames will be 1.jpg, 2.jpg, etc. A simple script can be used to download all images from your server. To avoid that, name your files using a random generated unique string instead, e.g. UUID. Store that string in a new column in your table and use that to identify your photos.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 related Linq to SQL questions. Please see the image below to
Please see the image below As you can see I have a master page
Please see the image below. How was this 'pop-up' view created? Suppose I wanted
Please see my answer to this question below. It is based upon Kevin's input,
******QUESTION WAS EDITED, Please see below** I am running into a problem when I'm
Please see the image below. Assume that these are all divs with the given
i have the following situation (please see image below after reading the following): .dragoverlay
Please see the below image. It is a snip containing the Y-axis of a
Please see the attached image. I'm trying to change the color on the segmented
Please see here , at the end of the post, the 70px author image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.