Log in

View Full Version : Dynamic Images



pacognovellino
10-22-2006, 03:00 AM
Hi, I was wondering if some one knows how to upload images to a mysql database in dreamweaver. I have come across a tutorial that show how to add dynamic content from a input form in dreamweaver and now I want to add images with the same input form. Here is the tutorial for reference http://paul.ecommerce.hct.ac.ae/tuto...xphp-part2.htm thanks

djr33
10-22-2006, 03:04 AM
dreamweaver has NOTHING to do with PHP.
You can edit a php page with dreamweaver.
But to actually do php, you just look at the code.
I like using DW 'cause it color codes the source so it's easier to see.

But... you still need to code the php by hand.

Don't store images in a database. Databases are for DATA, not files. The database would get huge, and just isn't supposed to be used for that. It's possible, and I've seen it done, but that's not the "right" approach.

Use a database and store the URL to the image (and any other fields you want), then just use that url in your php to get the image that way.

look here: http://php-mysql-tutorial.com
step by step, easy. worked for me.