• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
want to create a url like http://www.example.com/uername

#12
[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;
}



Messages In This Thread
want to create a url like http://www.example.com/uername - by El Forum - 06-29-2012, 04:15 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.