Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.
Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.
hai guys, i am new to your forum and this post will be probably my first in your forum..
i am having a simple forum which runs on simple php and mysql..
i am doing modifications of it and now i am trying to add a multiple file attachment system to the forum post... i dont want the files to uploaded in the database i just want them to be uploaded in the folder lets say "files" in the server,, and the file size, file name, and file location to be inserted to the database table lets say "file"...
but some how i am not been able to attach the uploaded files with the forum post if any one of you know a way to make it run successfully then please do reply....
That needs little bit of coding. First make the script for uploading files and place them on the destination folder. Then make its database insertion script, which runs along with the uploading script.
On the attach file table (Which is for the attached files), include necessary fields for file informations (actual url, size, ect.. ) and post informations.
When displaying post's contents, check for the existance of any attached files with post id in attach file table.
I hope you understand the steps....
For codes, you can find many file uploading scripts,
ok now i was just wondering when you will reply thanks for it,, now i have been able to upload the files into the server folder and yes the name of the files in the table value "filename", now the problem with me is that i am not been able to attach the file with the post of the thread,, i have also called the table in the index file, some times the file is shown in the post and when i refresh the page its gone all i can say is that i am not having the luck right now,, by the way the script that i am modifing is chipmunk board... yes its a little bit more error script..if you can give a little more info how to attach it with the post then sure i will do it,, i just need a little help on this ....