Hi All, Anybody can tell me how can i insert images into the database??? like as on line submit images option. If possible please provide me the script. Thanks in advance.
Hello, it's not a good idea to insert raw image into database. It's better to store it in the filesystem (e.q. /photogallery/PhotoID.jpg). If you want to insert image into DB, try to inserting it as BLOB.
agreed, storing binary in a database is asking for problems. Better to store the filename location. Oh, and files over 80kb or so should be stored in a field as LONG BLOB or else your images will come through corrupted. But I still don't recommend it
no i do not want to store image in a table i want to store its path only so what will the sql query for that. my all images are store is specific folder.
select filename from file_table where client_id=12 then you can concatenate the directory name to the file name print "<img src=$dir.$filename>" -Shelon Padmore