I am used this query for open my full page, But some change my code, When i open in new page It is show with page ID but i not like page id i want to change in post title.
Anybody can help me, Thanks in Advance
http://website.com/movie.php?do=movie&id=136
Want to change in
http://website.com/movie.php?this-is-movie-post
My Query is:
$query = mysql_query ("SELECT * FROM movie_post WHERE lang='english' ORDER BY id DESC LIMIT 12");
while ($row = mysql_fetch_array($query)) {
print "<div class=postmenu>";
print "<ul><li><a href='movie.php?do=movie&id=".$row["id"]."' title='".$row["m_title"]."'>".$row['m_title']."</a>";
print "<img src='".$row['coverimage']."' height='150' width='150'>";
print "<h5>Posted By: '".$row['username']."'</h5></li></ul>";
print "</div>";
}
maybe you should change this line:
print "<ul><li><a href='movie.php?do=movie&id=".$row["id"]."' title='".$row["m_title"]."'>".$row['m_title']."</a>";
to:
print '<ul><li><a href="movie.php?'.strtolower(str_replace(" ","-",$row['m_title'])).'" title="'.$row["m_title"].'">'.$row['m_title'].'</a>';