upload image into database

i am new for php and would like to save the image after browse into table in binaryfile.

but i not able to found the solution on it.

can anyone help me?


You probably mean you want to save into the DB in a BLOB data type (I guess).

In that case, you should seriously consider saving to filesystem and storing only filename in DB (if at all - depends on your file names convention). For “why?”, there are plenty of threads on the subject. Here’s one.

There’s also Wiki articles on the subject as well.