Is there any way I can have good looking URL in PHP? any default php URL would look like this: http://example.com/something/?post=something But Is It possible to have It like this: http://example.com/something/user Is It possible to remove ?post= without using .htaccess
Here is some example code that I have been working on, Which on click of a post It would access my database and load the content:
<?php if(!isset($_GET['post'])) { $q = mysql_query("SELECT * FROM posts WHERE postID='something'"); } else { $id = $_GET['post']; $id = mysql_real_escape_string($id); $q = mysql_query("SELECT * FROM posts WHERE postID='$id'"); } $p = mysql_fetch_object($q); ?> Thank you for your Time!