gruetztian
03-16-2004, 05:03 AM
need your help
at present I gain experiences at working with BLOB fieldtypes in MySql. Blob is a type that can store every binary data like pictures, text documents etc. thats rigth?How do i work with PHP Uploads and $_FILES i know.But further?
To insert a incoming picture ive tryed this:
(a table with only a blob field)
$query = "INSERT INTO table_name VALUES (".$_FILES["name"].")";
should work or?
but the more complicated part, how to put the picture in a html <img>. The return value if a select the data from the database is a array?
at present I gain experiences at working with BLOB fieldtypes in MySql. Blob is a type that can store every binary data like pictures, text documents etc. thats rigth?How do i work with PHP Uploads and $_FILES i know.But further?
To insert a incoming picture ive tryed this:
(a table with only a blob field)
$query = "INSERT INTO table_name VALUES (".$_FILES["name"].")";
should work or?
but the more complicated part, how to put the picture in a html <img>. The return value if a select the data from the database is a array?