how to upload pdf file into mysql?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
arter
Forum Newbie
Posts: 3
Joined: Sun Mar 21, 2010 10:25 pm

how to upload pdf file into mysql?

Post by arter »

helo guys i need your help since im new with php.. i need coding that can upload pdf file into mysql and at the same time i can view the list of uploaded file.. please help me... :cry:
ell0bo
Forum Commoner
Posts: 79
Joined: Wed Aug 13, 2008 4:15 pm

Re: how to upload pdf file into mysql?

Post by ell0bo »

You need to give us a little more then that. Are you looking for us to give you an idea where to start, just some basic ideas, or do you actually want us to write it for you?
arter
Forum Newbie
Posts: 3
Joined: Sun Mar 21, 2010 10:25 pm

Re: how to upload pdf file into mysql?

Post by arter »

if possible i need full coding for that since im new in php.. i just started doing my project and i need to do upload function and im a bit blur.. is there any sources that can help me to solve my upload function...

thanks.
scarface222
Forum Contributor
Posts: 354
Joined: Thu Mar 26, 2009 8:16 pm

Re: how to upload pdf file into mysql?

Post by scarface222 »

haha, you need full coding? It's called google then man. If you are new to php, pick up a book and start reading that is the only way to learn. You have to learn how to code php to create upload functions. You can't just ask for every function you need on a forum by providing a vague description.
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: how to upload pdf file into mysql?

Post by cpetercarter »

Tip. Don't upload your pdf files into a database. Store them in a separate directory, and use the database to store information about which pdf file is which eg which pdf is associated with which posting.
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: how to upload pdf file into mysql?

Post by JakeJ »

I have to agree with the idea of keeping them in a separate folder. Your database could get very quickly bogged down.

I also agree with the idea that you need to go do some tutorials, study php and then come back and ask when you have a specific question about something. Not just "Hey, I want to make X. Please do the work for me so I don't have to."
ell0bo
Forum Commoner
Posts: 79
Joined: Wed Aug 13, 2008 4:15 pm

Re: how to upload pdf file into mysql?

Post by ell0bo »

I will gladly help you, but I'm not going to do what looks like homework for you. Check out these links, toss something together, and then when you need more help, ask a more concise question.

Check out these links, should help you on your way:
http://www.cs.tut.fi/~jkorpela/forms/file.html
http://php.net/manual/en/reserved.variables.files.php
http://us.php.net/manual/en/function.mo ... d-file.php
Post Reply