i am using rawurlencode function but that is not working when i click on url url remian same dont change why here my code where m applying urlencode function m also using .hatcess rewrite rules is any problem becoz of that ?
thanks
or please let me know what is good way that i can give this symbol - i my url for finish spaces in url
and then finish this - inserting that variable in next file
how this work ?
mean my exact variable is this Movie Name
but in url it shows like this without space Movie_name
but becoz m getting this variable finish _ from movie name before getting value
<?php
$name = $_GET['name'];
$noOfCols=2;
include "inc.php";
$que2 = "SELECT * FROM album where cat='$name' order by mname asc" ;
$exe2 = mysql_query($que2);
while($get2 = mysql_fetch_array($exe2)){
if($i==0)
echo '<tr>';
echo "<td width='250'><a href='".rawurlencode($get2['mname']).".htm'>".$get2['mname']."</a></td> ";
$i++;
if($i==$noOfCols)
{
echo '</tr>';
$i=0;
}
}
?>