PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I typed in the coding and the following message was returned:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '³Ù0' at line 1"
it means that file content breaks mysql query.
To avoid that use base64_encode() function before inserting image to the database and base64_decode() before displaying it on a page.
I'm afraid thats abit more technical then I'm used to. Do you mean I should insert base64_encode() function just before the INSERT and base64_decode() in my script at some point after that? Also it is written reports I am adding to my database, would this make it any different than inserting a image?
This is my first attempt with PHP so I still have a mountain to climb with it!!!!