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!
Essentially it boils down to making a blob or mediumblob field in your table, reading in the data of the image and storing it in that field. To pull the data out, make a particular file that you'd call in HTML code rather than the image file, sending a GET variable corresponding to the ID of the image. But like feyd said, do a search.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.