Ok look here is a bit of my code on how im actually doing it... (flog.php?u=xmod/) I really need some help to change it to this (xmod/) My Idea is when new users register to create a folder with their usernames and copy and paste flog.php (which actually would be index.php) into their folder and that would allow me to access to their data. but i dont want it to be xmod/index.php?u=xmod I want it to be xmod/index.php

CODE
<?php require_once('config.php'); ?>
<?php
if (isset($_GET['u'])) {
$userName = $_GET['u'];
}
$q1 = "SELECT * from flogUser WHERE user_name = '$userName'";
$r1 = mysql_query($q1) or die(mysql_error());
$userInfo = mysql_fetch_array($r1);
?>
<html>
<title><?=$userInfo[user_title]?></title>
<body>
</body>
</html>
I am reading now more about mod_rewrite but it is the first time im actually using it... I havent find anything helpful yet buf if I do. I will update...
This post has been edited by Xmod: 4 Aug, 2007 - 05:24 PM