How to put extension with a ? on it?
Collapse
X
-
truthfully using modrewrite to make site.com/username and witout scorn i rilly dnt fink ur ready to undergo a project like dat, u'll regret the amount of holes u'll have like lava. If u really wana start sumtin huge like dat use a framework, half d jobs dun plus its optimized and unit tested. U mite argue u want sumtin dats 100% urs, bt if u dnt get it rite, trust me u wil regret it.
Leave a comment:
-
u need to work around that also you can't have any other action or other page in one header.
but if you work around
$? = $_GET["?"];
$?(.*) = $_GET['?(.*)'];
wild Card (.*)
Make sure you clean up with html chapters
Leave a comment:
-
You obviously didn't understand my question which explains why you call it a simple task any way thanks for your effort
Leave a comment:
-
Well ,I wonder how you are creating ur social network if U cant do this simple task..By the way,do it this way
And we are done..Note,U have to add more stuff cos this is basic...PHP Code:<?php //lets say this is ur link to get user's nickname //http://adrazz.net/user_profile.php?id=10 This is our link //so lets get the username with the link if(!empty($_GET['id'])){ //lets do few clean up.note its basic add more filtering $user_id=htmlentities($_GET['id']); $user_id=mysql_real_escape_string($user_id); //now lets query from the database $query_user=mysql_query("SELECT username FROM users WHERE id='$user_id';")or die(mysql_error()); $user_data=mysql_fetch_array($query_user); //our user name $username=$_user_data['username']; }
Leave a comment:
-
How to put extension with a ? on it?
Hey guys i'm creating a social network now my problem is when i want to put a link to another user's profile. say i want to click on a linkwhich links to a user profile with the nick name of s3nzo how can i perform this?Code:mysite/viewprofile.php?s3nzo
Leave a comment: