Keeping it all together!
Posted: Mon Mar 06, 2006 12:55 pm
How is everyone. Thanks for having such a site.
I am new to PHP but am having a good time learning, with alot of success in my opinion. I created a succesfully mysql DB and I made it so I can use HTML forms to add records to the DB. That all works.
However, I want to be able to upload an image. I know there is an upload image script. However, if the user adds a record to the database, the image will get lost in my server with its random filename. How can I keep it together? In other words, is there anyway I can have the user upload the image first, then determine where that image is located, then add that location as an element in the record? That way the location of the image would be in the database as a column.
Any suggestions are appreciated.
Thanks,
Rob.
I am new to PHP but am having a good time learning, with alot of success in my opinion. I created a succesfully mysql DB and I made it so I can use HTML forms to add records to the DB. That all works.
However, I want to be able to upload an image. I know there is an upload image script. However, if the user adds a record to the database, the image will get lost in my server with its random filename. How can I keep it together? In other words, is there anyway I can have the user upload the image first, then determine where that image is located, then add that location as an element in the record? That way the location of the image would be in the database as a column.
Any suggestions are appreciated.
Thanks,
Rob.