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

  • Home
  • SEARCH
  • 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 7893351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:06:40+00:00 2026-06-03T07:06:40+00:00

I need help with a function so that I can upload a picture from

  • 0

I need help with a function so that I can upload a picture from my custom CMS, then have it shown together with my post. Look at the picture below:
I want a picture in this image placeholder
I’m not so good at PHP or Mysql so please give me a easy answer.

I’ll post my code over here at pastebin, easier for you to watch over there! http://pastebin.com/gBVe9sZV

  • 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-03T07:06:41+00:00Added an answer on June 3, 2026 at 7:06 am

    If you’d like to show a set of images with your post, you’ll need to store those images in a table along with the post id that they are associated with.

    Upon submitting your form you’re probably handling the post data via $_POST. Your images will come across under $_FILES. Once you have performed an insert on your post table, you can call mysql_insert_id() to get the new primary key ID for that post.

    The post id can be stored in your images table along with references to your various images. I’m assuming here that you aren’t generating your own post id’s, however if you are you’d use that instead.

    See also Handling File Uploads, on php.net.

    Whenever you’re querying your database to show the post to your readers, perform a JOIN on the images table based upon a common post id, and you’ll have the paths to all related images.

    See also Understanding JOINs in MySQL and Other Relational Databases, on sitepoint.com.

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

Sidebar

Related Questions

I need help with my C code. I have a function that sets a
I need some help on the SimpleXML calls for a recursive function that lists
I need help with preg_match function in php. I have read a lot of
i need help with disk_total_space function.. i have this on my code <?php $sql=select
I need to convert the function path::combine(path1, path2). Please help me if you have
can someone help with this? I need the following function to do this... $x
i need help building a function that display an associative array and i want
I have a function that updates a user in the asp.net membership provider. <AcceptVerbs(HttpVerbs.Post)>
I need a function that can give me all possible combinations of a array
Once again I need some help. I'm creating a multiple file upload function with

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.