multiple directories......

I have a membership script. When the user logs into their account it allows them to create a directory folder on the server. Once that directory folder is created they can go to that directory folder with a click of a button.
I got the users going to their correct directory folder on the server by connecting to the database and looking up the users ID inside the table of the membership script. Once it finds the ID of that user it looks for the field “directory”, then places it inside their account.

[php]

<? mysql_connect ("localhost","USERNAME","PASSWORD"); mysql_select_db ("DATABASE"); $sql = "select * from members WHERE id = $c->id"; $result = mysql_query ($sql); while ($row = mysql_fetch_array($result)) if ($row['directory'] != "") { $field1= $row["directory"]; echo "Go to my album"; } else { echo "You currently have no albums."; } ?>

[/php]

Right now it only allows the user to add one directory folder at a time. If they try to create a another directory, it just replaces the current directory field inside the database. I want to be able to allow the user to create unlimited number of directories as they want and then place them inside their account based on that user. I never want to show the other directories to the other users.

I’m not asking for you guys to write the code for me, I just need help to learn how to do this.

Does this make any sense? I’ve tried my best to explain this.

Thanks
Timothy

Sponsor our Newsletter | Privacy Policy | Terms of Service