Jump to content
MakeWebGames

Recommended Posts

Posted

Hi,

I'm trying to edit viewuser so:

viewuser.php?ID=1

becomes

viewuser.php?ID=playername

I have it so that the querystring takes me to the profile, but the profile is always ID 1

Any help will be much appreciated.

Thanks

Posted

Re: Querystring

Then you need to edit most files, because in viewuser.php has

$_GET['u'] = abs((int) $_GET['u']);

and in the query to so if you want it for username you will need to edit it and files. to.

Posted

Re: Querystring

 

Then you need to edit most files, because in viewuser.php has

$_GET['u'] = abs((int) $_GET['u']);

and in the query to so if you want it for username you will need to edit it and files. to.

Erm, Thanks

But that didn't really help, kind-of pointed out the obvious.

What exactly needs editing?

Posted

Re: Querystring

 

Then you need to edit most files, because in viewuser.php has

$_GET['u'] = abs((int) $_GET['u']);

and in the query to so if you want it for username you will need to edit it and files. to.

Erm, Thanks

But that didn't really help, kind-of pointed out the obvious.

What exactly needs editing?

The query, files, $_GET['u'], hope you secure it to, i would use preg_match to check the chars.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...