chase779 Posted May 24, 2009 Posted May 24, 2009 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 Quote
CrazyT Posted May 24, 2009 Posted May 24, 2009 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. Quote
chase779 Posted May 24, 2009 Author Posted May 24, 2009 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? Quote
CrazyT Posted May 24, 2009 Posted May 24, 2009 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.