Jump to content


php upload form into alink


5 replies to this topic

#1 Aussiestinger

    Young Padawan

  • Members
  • Pip
  • 270 posts

Posted 17 May 2006 - 08:02 PM

How would you go about having like an upload form, a person uploads say a picture or something else, and then it adds the link of where it uploads into the sql and then displays the link on a page?

Its just for somehting i want to try work on, staff will upload it and it just shows on the page.

Thanks if you can help.

#2 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 17 May 2006 - 11:40 PM

its basic mysql usage. i dont know if you wanted a script (if you did, you should just ask). read up on using mysql and then read up on uploading files.

heres where you should start: http://www.pixel2lif...showtopic=21991

#3 Aussiestinger

    Young Padawan

  • Members
  • Pip
  • 270 posts

Posted 18 May 2006 - 12:47 PM

Na not a script because I would rather read through tutorials and simpler ones so I can learn it myself instead of just uploading something and it working, thanks for the link.

#4 Wybe

    Jedi In Training

  • Members
  • PipPip
  • 399 posts
  • Gender:Male
  • Location:the Netherlands
  • Interests:Graphic design, digital and traditional, street style, graffiti, guerilla drawing, typography, coding, sex

Posted 18 May 2006 - 01:11 PM

Well, you're on pixel2life so after reading this post you'll have to use it's search function.

To upload an image, save the link in MySQL and then display it on a page, you need to do three things:
- Upload an image
- Save the link in MySQL
- And then display it on a page

(duh, Wybe). So, you need three tutorials for those (or two, maybe just one). I'm sure there are tutorials around that tell you exactly how to upload an image, and there's tutorials that tell you how to insert data into mysql. 1+1=2 and soon you only have displaying a link on a page left to do, which is also not very hard (actually the easiest part).

I'm sure you'll manage from here.

#5 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 18 May 2006 - 01:31 PM

check it out.


http://www.spoono.co...orial.php?id=14
http://www.spoono.co...orial.php?id=23 (although after the 1st bit of code, it becomes pointlessly unesessary, thats what i hate about most tuts. online)
http://scudworkz.com...ls/file_upload/

1+1+1 = 3, the three you needed :D

#6 Aussiestinger

    Young Padawan

  • Members
  • Pip
  • 270 posts

Posted 18 May 2006 - 02:48 PM

awesome thanks both of you, the only problem with searching was, I wasn't sure what to search for, seen as most uploadig tutorials I have seen don't do anything with a database, so yeah thanks you two.

Edited by Aussiestinger, 18 May 2006 - 02:52 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users