storing image url in mysql

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!

Moderator: General Moderators

Post Reply
ziggy99
Forum Newbie
Posts: 2
Joined: Thu Apr 06, 2006 12:29 pm

storing image url in mysql

Post by ziggy99 »

hi i need help storing an image url in mysql....

i am trying to create an upload page for my client in php dreamweaver 8 to store the info on newly added cat. products in a mysql db
i can get all the info into the inventory table on the server ... but how do i get the image uploaded to the server (to an image folder) through this page/form.... and get the image url stored in the db, so i can create records set...

any pointers would be great or a tuturiol would be better....

thanks in advance....
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

http://ee2.php.net/features.file-upload - for the file upload
http://ee2.php.net/manual/fi/ref.mysql.php - for the mysql functions

fyi, dreamweaver is not a good thing to use for coding in php, expecially if it is writing your php for you. don't-use-dreamweaver
ziggy99
Forum Newbie
Posts: 2
Joined: Thu Apr 06, 2006 12:29 pm

hi cheers for that

Post by ziggy99 »

what program would you advise to use to write php..
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

read through the Editor's thread.

viewtopic.php?t=6288
Post Reply