takn25 Posted February 19, 2011 Share Posted February 19, 2011 Hi, I want to create a directory named according to the users ID which is auto incrementing. I want to a create the directory only if they have successfully registered. In more clear words the directory should be as 1 2 3 onwards. A bit of guidance would be appreciated with the mkdir function and how can i get the user ID exactly after they have registered before they sign in is this possible? Quote Link to comment Share on other sites More sharing options...
gizmola Posted February 19, 2011 Share Posted February 19, 2011 You are in control of the user registration process, so I don't see any issue there. If you're using mysql, then you can use mysql_insert_id() to get the id of a new row you just inserted. The php http://us3.php.net/manual/en/function.mkdir.php is about as simple a routine as they come. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.