can u help me with this

Recommended Answers

All 3 Replies

Are you asking how to query a database to get the image info to show on a page or how to store an actual image in MySQL? First I would recommend not storing an actual image in the database rather storing the location that it resides on the server.

Here is a pretty basic tutorial that covers the concept of uploading images to the server and using MySQL to store the paths to the files.
http://www.php-mysql-tutorial.com/wikis/php-tutorial/uploading-files-to-the-server-using-php.aspx

Storing binary image data has its advantages, too. You can easily code for referential integrity without the danger of files getting moved, overwritten or lost. And the application becomes more portable.

Member Avatar for diafol

malipia - could you post your existing code? Your post doesn't really explain where your code is going wrong. Please show the code using the [ CODE ] tags.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.