Jump to content

Sherlocked

New Members
  • Posts

    7
  • Joined

  • Last visited

Sherlocked's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry, I'm not well-versed in which terms are universal, and which are not. I appreciate you bearing with me! The escape function, in this instance, is for the purpose of sanitising: <?php function escape($string) { return htmlentities($string, ENT_Quotes, 'UTF-8'); }
  2. I figured it out! It was the escape function. So, I deleted them all and it now works, but obviously I'm not comfortable with that setup. I tried slightly amending the syntax from: <?php echo escape($user->data()->name); ?> to: <?php echo (escape($user->data()->name)); ?> ...but it didn't work. Do you know how I could include it without it messing up my functionality, or why it's messing it up to begin with? Thanks D
  3. I just echoed out user Id and it's incorrect. I don't know if that sheds any light on anything? It's showing as 1, when it should be 33.
  4. No, I bought it. PHP is not my specialty I'm afraid! So I'm learning on the fly, as it were. I'd happily live without the extraneous functionality, but if the only way the profile is generated is via this particular function/query/whatever, then I need to riddle it out.
  5. The anchor tag is for a clickthrough to the user's personal profile, for which the only access is set through that link at the moment.
  6. Thanks for the suggestion. I realise that I'm not giving you much to go on, I just don't want to get into trouble for posting code I didn't write. I suppose if it's just excerpts then it should be okay. This is the bit that doesn't want to work. It follows a redirect from the login page, upon successful login: It's supposedly activated by a query to confirm whether or not the user is logged in. I think this is said query: Any help? It won't pull the name for any of the functionality (I also have a profile page that is supposed to display the user's name, but currently says "Full name", and when trying to update the user's name, it should have the current name listed in the textbox, but doesn't. I *think* I've narrowed it down to the $data variable, owing to the fact that it seems to be in all of the code that isn't functioning, whereas the other variables are not. Although, quite what that means, I'm not sure. Thanks again.
  7. Hello, I'm not sure if I'm allowed to post the code, as I didn't write it. But, if you could offer some ideas on where I'm going wrong, I'd be very appreciative! I basically have a feature on my homepage that displays "Hello _username_!" upon login, but the username is missing. So, I'm presuming that the functionality for pulling the username from the table is somehow failing. Any ideas? Thanks Daisy
×
×
  • 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.