My kingdom for an answer! (PHP coding)
Posted 30 September 2006 - 12:01 AM
I'm building a musician community. I joined, went and got my email verification, loged in, changed my photo and info,logged out. Joined as my wife, and did all the same for her profile.
The trouble is that I have a button "Your Profile" on homepage, and this is all I know to give to let members see their profile info.
Now when it comes time to build my search script I'm screwed because I cannot figure out how to use "mkdir" in the script that signs my members up. Upon member sign-up I know I have to do something with "mkdir" to give them an area of their own. And I know I have to use a unique field in the database to assign member to their area.(was thinkin' bout using "userid",<---good? or bad idea?)
But that's about it, that is all I know to do and have no idea how to code that bunch of mess and not many other folks do either. I've been asking in various forums for one week now. So now I come here to try.
(1) Is it possible for me to put my 'user sign_up' script here, and have someone show me how to code the "MAKDIR" function into it where it does what I need?(make folder in directory for user)
(2) Is it a good idea for me to use the "userid" field as my unique for "makdir"?
Basically my goal is to search profiles, find the two dummies I created then click either thumbnail and it would take me to their profile to view. But in order to make that possible I need different folders for different members.("MKDIR") I don't know how to code the "MKDIR" for my script or where to put it in the 'Sign_up' .php
I will owe whomever helps me a great deal because this last thing is all I need to figure out in order to finish the project by myself. Instead of paying someone $3000-$5000 to build my site.
Thanks a million ~Adam
Posted 30 September 2006 - 12:15 AM
That is if I'm understanding what you're trying to do?
Posted 30 September 2006 - 12:48 AM
Posted 30 September 2006 - 01:00 AM
Posted 30 September 2006 - 01:27 AM
please go on, i'm very interested in what you're saying. I'll prolly wind up with 100,000 mp3's, relative amounts of the other things.
Wait, how do I make a link to various peoples profiles in my search results if I have no place to link to?
Can I link search results to the database?
Posted 30 September 2006 - 05:32 AM
For 2: Not unless you take pains to enforce unique IDs.
To link various profiles you could, as one of many possible ways, pass variables to your profile page using GET as part of a link
<a href="profile.php?id=' . $theid . '">and have the database use the GET info to pull data for the page.
SELECT * FROM users WHERE userid = $theid
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users