Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/242663-creating-profile-in-usercake/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.