How to put extension with a ? on it?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CreativityKills
    replied
    did u download it yet

    Leave a comment:


  • s3nzo
    replied
    Originally posted by CreativityKills View Post
    use a framework, half d jobs dun plus its optimized and unit tested.
    Thanks bro i'm still waiting for kohana to approve my account

    Leave a comment:


  • CreativityKills
    replied
    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:


  • subzero
    replied
    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:


  • s3nzo
    replied
    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:


  • razzbee
    replied
    Well ,I wonder how you are creating ur social network if U cant do this simple task..By the way,do it this way
    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'];
    }
    And we are done..Note,U have to add more stuff cos this is basic...

    Leave a comment:


  • s3nzo
    started a topic How to put extension with a ? on it?

    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 link
    Code:
    mysite/viewprofile.php?s3nzo
    which links to a user profile with the nick name of s3nzo how can i perform this?
Working...
X