Mega Code Archive
Here is a quick n dirty image uploader to a mysql db
Table structure:
CREATE TABLE binary_data (
id INT(4) NOT NULL AUTO_INCREMENT PRIMARY KEY,
description CHAR(50),
bin_data LONGBLOB,
filename CHAR(50),
filesize CHAR(50),
filetype CHAR(50)
);
Store binary data into SQL Database
This file has the following Database ID: $id";
//show the form again to load the next image
show_form();
}
function show_form()
{
// else show the form to submit new data:
?>