Mod_Rewrite(username)

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

    Mod_Rewrite(username)

    hi guyz how can i work on this in url?
    example



    into mod rewrite

    uhttp://whitewingzsite.com/whitewingz
    anyone know how to work on this?

    thanks to who want to help me :D

    Edited:
    Sorry hehe
    Last edited by whitewingz; 28.02.11, 07:42.

    #2
    you can tell it to be that
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      it's ok now<-(what i mean here is the question above is ok becuase you dont understand before because of that link that i use example.com so i change it so you can see the real question).. sorry hehe :D
      Last edited by whitewingz; 28.02.11, 07:59.

      Comment


        #4
        you still need help ??

        Use any rewrite here then get the script to know it first
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          yes i still need help..
          i try this but it seems not work it say not found

          RewriteRule ^([^/.]+)$ /user.php?who=$1

          i try to search my name whitewingz.com/whitewingz

          user does not exist..

          but when i try whitewingz.com/1

          it works..

          but i want to be mod rewrite is name?

          it's lavalair script..
          Last edited by whitewingz; 28.02.11, 07:53.

          Comment


            #6
            order by id

            you will need to use abc like getting username from id
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              user.php?who=whitewingz means that in ur query's u must put :

              $x = mysql_fetch_assoc(mysql_query("SELECT `bla`, `bla` FROM `users` WHERE name='".mysql_real_escape_string($_POST['who'])."'"));
              not
              $x = mysql_fetch_assoc(mysql_query("SELECT `bla`, `bla` FROM `users` WHERE id='".((int)$_POST['who'])."'"));
              Last edited by i0nutzxp; 28.02.11, 09:43.
              <?php unlink('World/Europe/Romania.country'); ?>

              Comment


                #8
                Originally posted by i0nutzxp View Post
                user.php?who=whitewingz means that in ur query's u must put :

                $x = mysql_fetch_assoc(mysql_query("SELECT `bla`, `bla` FROM `users` WHERE name='".mysql_real_escape_string($_POST['who'])."'"));
                not
                $x = mysql_fetch_assoc(mysql_query("SELECT `bla`, `bla` FROM `users` WHERE id='".mysql_real_escape_string($_POST['who'])."'"));

                i try it.. thanks..

                Comment


                  #9
                  $name = $_POST['name'];

                  $ok = mysql_fetch_assoc(mysql_query("SELECT id FROM blabla_users WHERE name='".mysql_real_escape_string($name).'""));

                  $who = $ok[0];

                  simple...

                  Comment

                  Working...
                  X