Clarkie Posted July 22, 2011 Share Posted July 22, 2011 Hey, I've been using UserCake to create a game to help me teach myself PHP. This is the first time I've ever tried to use PHP and I'm struggling to add profiles to the script. The account page shows the logged in users amount of money etc and I took that and tried to edit it so it would use the $_GET function and then the url "user.php?ID=1" (example only) could be used to see user 1 and anyone could see the page. http://pastebin.com/u/Clarkie On Pastebin you can see the original files used for the account page starting with "UserCake". These pages work and do not need fixing. The pasties starting with "New UserCake" are my custom pages. I'd appreciate it if somebody could not only tell me how to fix it but also explain why it needed fixing so I can learn from the mistake. A live demo can be seen here: http://www.jacknathanclarke.info/dev/test/user.php?ID=1 Thanks for your time and help, Clarkie Quote Link to comment https://forums.phpfreaks.com/topic/242663-creating-profile-in-usercake/ Share on other sites More sharing options...
Clarkie Posted July 22, 2011 Author Share Posted July 22, 2011 (Sorry for double post I can't edit atm) The other option is taking the working account.php and class.user.php pages and creating new pages that use the $_GET function (user.php?ID=?) in the same way I've tried to do. Quote Link to comment https://forums.phpfreaks.com/topic/242663-creating-profile-in-usercake/#findComment-1246356 Share on other sites More sharing options...
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.