Storing multiple file paths inside a database
View Single Post
02-13-2008, 04:53 AM
Join Date: Dec 2007
Originally Posted by
Instead of just using the ID field, you can create a row in the table named 'files', and you could list them off, separating them by a semicolon and storing them that way. (You can then use a function like explode() to get the into an array for any manipulation.)
list them off? What do you mean?
"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." - George Bernard Shaw
View Public Profile
Send a private message to Orc
Visit Orc's homepage!
Find More Posts by Orc