Hei dp members, i want to know... how to change this url :- /articledetail.php?id=12&title=Article%20Cloning%20for%20fun%20and%20profit to /articledetail.php/id/12/title/Article_Cloning_for_fun_and_profit
you need to convert whitespaces to underscores. <?php $title = str_replace(" ","_","$title); ?> Mod Rewrite code:
That error is nothing related to the code Im The One gave you. Make sure you placed the code in the right place or you didn't copy and paste it wrong.
I would do the link like: /articledetail.php?12/Article_Cloning_for_fun_and_profit and in articledetail.php Insert into first line: list($_GET['id'],$_GET['title']) = explode('/',$_SERVER['QUERY_STRING']); //$_SERVER['QUERY_STRING'] should contain 12/Article_Cloning_for_fun_and_profit PHP: No need for htaccess rewrite. Peace,
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ajak/public_html/eacharticle.com/articledetail.php:2) in /home/ajak/public_html/eacharticle.com/articledetail.php on line 3 Code (markup): not work.. i think it use 2 page. One index.php and articledetail.php at index.php i change it to this code <a href="articledetail.php?id=<?=$line[articleid]?>&title=<?=$line[articletitle]?>"> Code (markup): result : /articledetail.php?id=12&title=Article%20Cloning%20for%20fun%20and%20profit so what you think? i need help...
$line[articletitle]?>"> $articletitle = str_replace(" ","_",$line[articletitle]); <a href="articledetail.php?id=<?=$articleid?>&title=<?=$articletitle?>">