A
alanjaldred
Guest
Hey there guys. Working in php and mysql. As part of my website, I have a kind of social network. I allow my users to upload images. The method I am currently using to upload the image to a main folder, and the name will go in a mysql user named table and then on a given page I will have for example
echo "<a href='upload/'". $row[imagename]; ."'>";
.
I am just concerned as I am sure this is not the best way to go about it. What would be the most organised way of doing this? I have thought about having the images stores as BLOB data in tables but have seen that is not adviced.
How would sites such as myspace or facebook go about it?
Thanks for any help
oops i meant 'img src' not 'a href'
sorry about the spelling etc, its like 5.50am 0.0
I already have seperate, auto generated tables for each user dedicated to just photos. Its just one collumn(the photo name)
echo "<a href='upload/'". $row[imagename]; ."'>";
.
I am just concerned as I am sure this is not the best way to go about it. What would be the most organised way of doing this? I have thought about having the images stores as BLOB data in tables but have seen that is not adviced.
How would sites such as myspace or facebook go about it?
Thanks for any help
oops i meant 'img src' not 'a href'
sorry about the spelling etc, its like 5.50am 0.0
I already have seperate, auto generated tables for each user dedicated to just photos. Its just one collumn(the photo name)