get .zip files from an mysql
Posted: Tue Sep 30, 2003 10:01 am
HI.
I have a site that i can upload .zip .rar files to an mysql. This files are counter-strike maps and i want visitors to download them. But how do i print them out ?
I have no idea to do that. I have looked around for a vile now and cant finde how to..
------------------------------------------------------------
Here are the files.sql
CREATE TABLE files (
id int(10) unsigned NOT NULL auto_increment,
name varchar(80) default 'None Given',
file_desc varchar(200) default NULL,
file_type varchar(60) default NULL,
file_size int(10) unsigned default NULL,
file_data blob,
downloads int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
--------------------------------------------------------------
When a visitor download them, the file should be saved with the name i uploaded it with.
I have a site that i can upload .zip .rar files to an mysql. This files are counter-strike maps and i want visitors to download them. But how do i print them out ?
I have no idea to do that. I have looked around for a vile now and cant finde how to..
------------------------------------------------------------
Here are the files.sql
CREATE TABLE files (
id int(10) unsigned NOT NULL auto_increment,
name varchar(80) default 'None Given',
file_desc varchar(200) default NULL,
file_type varchar(60) default NULL,
file_size int(10) unsigned default NULL,
file_data blob,
downloads int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
--------------------------------------------------------------
When a visitor download them, the file should be saved with the name i uploaded it with.