ok . i already have the registration script making the username the person choses as their own directory which is for me right now because my name is thissucks
example.com/thissucks
i also made an index file in each which is the profile.
i kind of understand the code...
$uri=$REQUEST_URI;
$tmp=explode("/",$uri);
echo $tmp[$tmp.length()-2];
but i dont know how to use it.
i need to be able to have a variable.
which has to be called $specific_user
and this variable has to CHANGE for every profile that is being viewd
example: on example.com/thissucks (or example.com/thissucks/index.php)
$specific_user has to equal the word thissucks
example: on example.com/heywhats-up (or example.com/heywhats-up/index.php)
$specific_user has to equal the word heywhats-up
so how do i get $specific_user to change for every profile bein viewed ?
cause i have to use $specific_user to look up the information in the mysql database so the specific user's info will be on their profile..
??? does anyone get what i dont know what todo?
&&&&
i used the above code just put it in the test file right with php tags around it and i got this error:
Fatal error: Call to undefined function length() in /home/peace/public_html/test1.php on line 14