I have been planning to develop a website that would allow users to enter their data and pictures. I would like to save each user in a row. But i have no idea of how to store the pictures, will i store them as files somewhere and then have a id pointing to these files in the database.
In the PHP/MYSQl series looks like kevin is storing the jokes itself in a column in jokes table. What if i had huge files that cant fit in a column.
I am not very good at db so .....
Thanks in advance
Store the URL to the picture in your column. i.e. ROW 1 = http://www.yourdomain.com/pictures/userid/picture1.gif
Then in your code that builds the page you would write code that inserts that URL into an image tag via a variable.
Wayne Luke - Sitepoint Forums Administrator
Digital Magician Magazine - MetaQuark Creations (Coming Soon)