Jump to content

phppup

Members
  • Posts

    928
  • Joined

  • Last visited

  • Days Won

    1

Community Answers

  1. phppup's post in Why is_file isn't seeing files? was marked as the answer   
    @mac_gyver yes, I had discovered that, but it wasn't the actual fix.
    The real issue was that my test for is_file was flawed; it didn't drill down to actually test the specified file.
    if (is_file($subDir)) { //needed to become if (is_file($directory.'/'.$subDir)) { After both adjustments, everything is running better than expected!
  2. phppup's post in A simple idea gone haywire was marked as the answer   
    Never mind.
    Reapplied the logic and resolved the issue.
  3. phppup's post in Creating a unique page for every user using PHP PDO and MySQL was marked as the answer   
    At first glance I have two questions that come to mind.
    First, why are you using the query SELECT * (asterisk gives ALL values) if you want ONLY values for a specific user?
    Perhaps, SELECT item, next item, etc WHERE username = $username would be more defining. (You can research "php select where" for better understanding)
    Also, I don't see anywhere that you are specifying which user's information you want displayed.
    Maybe I missed something, but I hope this is helpful.
     
×
×
  • 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.