Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Nth...use a user id, not a username. See: normalization.
  2. Well, that's not how you use echo. That's clearly not valid PHP. You need to echo the entire URL you are trying to load, and do it on it's own line.
  3. http://php.net/manual/en/function.uniqid.php
  4. Try changing the order of your arrays.
  5. Then your syntax is wrong. You didn't post your new code. We can't see your screen. We can't see your code. We can't see your errors. You have a basic syntax error, look at the code you added. Are you using an IDE with syntax highlighting? It would be obvious.
  6. No, I'm not going to your blog, especially if you won't even help us help you. You get an error? Great!!! WHAT WAS IT?
  7. First, echo that string, then go visit the url. What do you see?
  8. Go to the administration then. Don't be a victim. The manual is a good resource. If you don't understand why you have to do function validate($string_to_validate, $type_of_validation){ instead of function validate(), read the manual section on functions.
  9. I personally would use the strings and tell the teacher than since 1 and 2 are meaningless, you used arguments that made sense. I would also tell him if he's not interested in teaching, you'll continue to follow advice given to you by seasoned professionals. But I'm a bit of a hardass on bad teachers. I had too many of them. And yes, either 1,2 or 'email','password' is what will be saved as $type_of_validation.
  10. So, you have the right idea in sending it a second argument. But 1. It should make sense (not 1 or 2 but 'email' or 'password'), and 2. if(1) will always == true, and if(2) will always == true. You need to capture the arguments you're passing to your function. function validate($string_to_validate, $type_of_validation){ switch($type_of_validation){ case 'email': .... etc your code
  11. 0.2 grater than zero? ;D
  12. OMG is that a "touche" smiley? I love it.
  13. It looks like it returns an array, which you can't echo anyway.
  14. What isn't it doing that you expect it to do? It slides fine. What's the problem?
  15. So the PM you sent out I'm guessing en masse, you forgot that already? No one is "having a go" at you. Grow up.
  16. Did you actually read what I wrote?
  17. Where did you get the idea that E_ALL does not include E_DEPRECATED? As I said, before 5.4 E_ALL did not include E_STRICT - that's it.
  18. If you're using 5.4+ you use E_ALL. It's not "better" to use one over the other, the -1 is for <5.4 when E_STRICT was not included in E_ALL.
×
×
  • 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.