Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. I think you need to get a better understanding of how classes work. You seem to be just randomly using ., -> and () without any idea why.
  2. OP: Your ID value has probably exceeded the maximum allowed. You should use an auto incrementing ID over a generated ID.
  3. $query = 'SELECT user_name, first_name, last_name, email, location, state, zip FROM user_info u JOIN user_info i ON u.user_id = i.user_id WHERE user_name = "' . mysql_real_escape_string($_SESSION['user_name'], $db) . '"'; WHY are you doing this? Do you understand what a join does, or how to create a query?
  4. If you had posted your code it would have been fixed a lot quicker.
  5. https://www.google.com/search?q=define%3A+ambiguous&sugexp=chrome,mod=17&sourceid=chrome&ie=UTF-8 Because you're joining to a table which also has the same column names, it can't tell which one you want. The bigger problem is WHY you are joining the user table to itself. That's occasionally a good idea but not for what you're doing. WHY??
  6. Study for the Zend Certification.
  7. You're the one who switched your service. If you want to "learn Wordpress" whatever that means, do it on your own computer so it doesn't affect the "business" sites. Problem solved.
  8. It means your query is malformed. When you echo the error, also echo the query. Most people aren't going to download your whole file, just post the relevant code and the query.
  9. No, you're REALLY just trying to do something the wrong way. Stop thinking about it that way, and start over.
  10. Still doing it wrong. Start with some basic PHP tutorials.
  11. Fortunately, you got more than one reply which pointed out the real problem.
  12. Think about it. How could there be a firefox addon for debugging PHP. How would that work?
  13. Post your updated code.
  14. Break it out into different pieces and you'll find the problem. $this->db->where('password', $this->encrypt->sha1($salt . $this->encrypt->sha1. $this->input->post('password'))); becomes $posted_pw = $this->input->post('password'); $salted_pw = $salt . $this->encrypt->sha1 . $posted_pw; $encrypted_pw = $this->encrypt->sha1($salted_pw); $this->db->where('password', $encrypted_pw); That said, I didn't see any extra parens. What is the error you get?
  15. If you have no idea what you're doing, don't post BAD help. You guys are stuck on putting the or die() in the wrong spot for one thing.
  16. Yeah seems like there's no reason to leave them out. It would only cause problems down the road
  17. In your code you haven't started the session. However, the big problem is you're assigning it as USD, not comparing. http://us2.php.net/manual/en/language.operators.comparison.php
  18. Why should the session = GBP, based on the code you've posted? You've given us one line of code and expect ideas?
  19. FTR, I agree 100% with Mahngiel. This question is like asking "Should I buckle my seatbelt all the time or only when a cop is watching?". Do things the right way. You know there's a right way. If you're not doing it the right way, it's only going to cause problems.
×
×
  • 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.