Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. I agree 100%. But saying that using trim will make the site not work isn't true - as long as you trim it every time. Not to mention, that a simple phrase is way more secure than just "random" characters. You can make a much more secure password using only a-z than using special chars - what matters is the length. You said "I click "Register" and the form goes through successfully. Now, in the backend you've just trimmed that trailing <SPACE> without my knowing. The next time I go to login my trailing space is no longer valid and I will have no idea why." That is not true, as long as they trim it each time. That was all.
  2. If in your model you fix your code to actually do something with "$row->first_name;" like maybe $this->first_name = $row->first_name; Then in your controller you can do: $this->account_model->user()->first_name;
  3. As long as you mess with it the same way each time who cares.
  4. Stop opening new PHP tags when you're already writing PHP.
  5. $query = sprintf("UPDATE `users` SET `password` = '%s' WHERE email = 'email'", Obvious troll is still obvious.
  6. $arr = array('item1', 'item2', 'item3'); $newarr = array(); foreach($arr AS $a){ $newarr[] = array('value'=>$a); } Why?
  7. You can either run the query in the SQL tab, or just use the command line instead of MySQL.
  8. Desc is a reserved word. Surround it with back ticks or change to a better name.
  9. Change it in your PHP.ini http://php.net/manual/en/mail.configuration.php
  10. What is a hook sign? Are you talking about the favicon?
  11. Did you try looking for the number 3, and changing it to 4 or 5?
  12. You will have to use an IDE meant for development.
  13. He's got 99 users but a hacker ain't one!!
  14. No. Whatever you're doing you are going about it in the wrong way.
  15. If you don't have it set to zerofill it won't show.
  16. "What code have you written and what error, symptom, or problem did you have when you ran it?" You did one of these things. It sounds like all you need to do is add an if(). Time is easy to do math with. What have you tried??
  17. As for the why: its just wrong to use tables. It might work, but its bad practice. It makes it harder for people using screen readers. An analogy might be using "txt spek" to write a term paper. Can you be understood? Yes. Is it correct? No.
  18. If you don't want people to be able to browse to the file, put it outside of the document root.
×
×
  • 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.