Best wasy to create user uploaded image buttons

Discussion in 'PHP' started by thedark_master, Feb 14, 2009.

  1. #1
    Hello I want to create something like on this page:

    http://cgtmm2.tech.purdue.edu/411/portfolio/

    Basically it asks the users to enter their name, URL, and an Image, and the php code is supposed to upload the image on the site and make it into a link from the info the user provided.
     
    thedark_master, Feb 14, 2009 IP
  2. IGiveMoney

    IGiveMoney Peon

    Messages:
    116
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well it will need to be connected to a database first of all.

    Because when the page refreshes it displays the new image.

    Now you may be able to pull it off with some trickery with php and ajax
    using the div table, but the easiest is simply post it back to itself.

    The rest is rather easy to complete.
     
    IGiveMoney, Feb 14, 2009 IP
  3. thedark_master

    thedark_master Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    well tnx for that but that doesn't really help me. I don't really know any php, the only thing ive done is a mail form or form that makes an external excel file and thats it. I also have not done any MySQL.
     
    thedark_master, Feb 14, 2009 IP
  4. AndreasB

    AndreasB Peon

    Messages:
    280
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This shouldn't be too hard.
    What you should consider is whether you want the images to be stored as external files (= all images are uploaded to a folder, and a link to the image is stored in your database), or if you want the images to be stored in your MySQL database (easier, but might slow down your site a bit).
     
    AndreasB, Feb 15, 2009 IP
  5. thedark_master

    thedark_master Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I would rather go with the external folder, but if how much harder will it be with the mySql database? So what I know how to do is for the user to upload the images and the info. Now i need to know how to retreive the information and display it on the screen with a link
     
    thedark_master, Feb 15, 2009 IP
  6. AndreasB

    AndreasB Peon

    Messages:
    280
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    In my opinion, storing the images in the MySQL database is easier than having them in an external folder. I wil try to set up an example now, and post it here when finished :).
     
    AndreasB, Feb 15, 2009 IP
  7. thedark_master

    thedark_master Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok thank you so much, im sry for being such a newb :)
     
    thedark_master, Feb 15, 2009 IP