|
Blaise (f)
|
I have been told to develop a software that would enable users to upload and view the contents of a database. I have succeeded in the viewing aspect of the software but I’m having problem implementing the uploading of pictures in the software.
How can uploading of pictures be implemented using PHP and MySQL and what data type can contain pictures?
|
|
|
|
|
|
uspry1 (f)
|
What wrong with using GOOGLE.COM to find free PHP/MySQL script how to upload pictures to MySQL database server? Just type "upload picture to a MySQL database via PHP" on google. There are lot of PHP/MySQL upload file reusable scriptings out there for FREE!!! 
|
|
|
|
|
|
kheme (m)
|
data type should be BLOB - binary long object for the mysql database. the last poster was right, you can get scripts from the internet explaining how to do this with php. but i think i can work something out, you'll have to test it though. i hope you're quite good in php? cos i have little time to write this now cos i'm off to bed (or something like that)
on the other hand, i'll explain this later. no time now.
expect a reply from me,
|
|
|
|
|
|
aphoe (m)
|
i dont upload files directly to MySQL database. i create a folder in the webserver and upload my files there. then i store the path of the file in the database.
u can upload any kind of file with php. just go to google.com and check for file upload scripts
|
|
|
|
|
|
kheme (m)
|
well, aphoe is also right. you can either upload the image into the database directly, or to a folder on the server and then save the path to the image into the database. as for aphoe suggestion, i can help you with the scripts to do that. what's your level of PHP? what kind of software is it, web/internet application or desktop application?
|
|
|
|
|
|
Blaise (f)
|
i'm actually a beginner the in language and the software is a web based application
|
|
|
|
|
|
kheme (m)
|
so how far so far?
|
|
|
|
|
|
Blaise (f)
|
i've searched the web, found some codes, tried running them and they all gave me one error or the other. Since i'm not conversant with the way PHP operates, i couldn't debug them.
|
|
|
|
|
|
kheme (m)
|
paste the codes here, maybe we can help you debug it!
|
|
|
|
|
|