[eluser]Rayhan[/eluser]
Here what I have done to my ruote.php
$con = mysql_connect("localhost","username","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dbname", $con);
$result = mysql_query("SELECT * FROM table_name");
while($row = mysql_fetch_array($result))
{
$sname = $row['user_name'];
$a = $sname;
$b = "user/name/".$row['aid'];
$route[$a] = $b;
}