Log in

View Full Version : Upload a File, Entry into MySQL



NXArmada
10-03-2006, 02:55 PM
I can make a basic File Upload script in PHP, but how can i make a Database entry into mysql. The file will not be stored in mysql but a folder on the server. But details of the file will be stored in MySQL like its filename.

Database table:

datasheets
id int(11) No
part varchar(255) No
filename varchar(255) No
description text No


Indexes:
PRIMARY PRIMARY 0 id
filename UNIQUE 0 filename


If you can understand what i am trying to say lol.

NXArmada
10-09-2006, 01:14 PM
After a couple of days looking I have found some information on doing what I wanted and I am going to post that information here for everyone here to see how its done.

Uploading Files to MySQL Database (http://www.php-mysql-tutorial.com/php-mysql-upload.php)

Uploading Files to File Server w/ Entry into MySQL (http://www.php-mysql-tutorial.com/upload-to-file-server.php)