Creating A File Upload Script :
First we need to create the database table with the following SQL:
Code:CREATE TABLE `uploads` ( `id` int(10) unsigned NOT NULL auto_increment, `whenuploaded` datetime NOT NULL default '0000-00-00 00:00:00', `ipaddress` varchar(15) NOT NULL default 'unknown', `imageloc` varchar(255) NOT NULL default 'unknown', `imagesize` int(10) unsigned default NULL, `imagetype` varchar(30) default NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM;




Reply With Quote
Bookmarks