Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=348956.0
  2. The reason it was a double negative of sorts is because you have a ! in front of preg_match, meaning if not. You also had a ^ in your expression which in the location you had it means if not. Besides this though, I don't see the point in validating a username in this situation. You should be validating the data on the way into the database. If you do that, you don't need to validate it again when looking it up.
  3. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=348953.0
  4. Did you actually read my reply? Why are you still trying to duplicate your data?
  5. I already explained how to do it. Where exactly are you stuck?
  6. Buddy, I have't said anything rude, if you read my last reply you will see I offer a proper solution to your problem.
  7. Thanks litebearer, but I do have a tendency to be pretty blunt. Mostly due to frustration. I know I shouldn't bother. To the op: Think about it. Why would you need multiple copies of the same survey stored? You don't. Simple. Duplicate data almost always points to poor design. A better question seeing as you don't seem to understand how to do it well is. "How could I link multiple surveys to multiple accounts" or similar. You basically need three tables. One to store all the questions, each row also needs a column linking it to the next table. The next table could store the name of the server and the id linking it to the previous table. You then use this same id to link each survey to a users account.
  8. That really doesn't answer the question. Data duplication is a sign of poor design. Without any valid reason as to why, I am very reluctant to let you know how.
  9. Tying queries to a class does not make them re-usable. A simple function will server the same purpose, even then, I would say your compromising flexibility.
  10. That alone is a bad idea. See here for a solution: http://www.phpfreaks.com/tutorial/data-joins-unions
  11. Why don't you try actually asking a question?
  12. Have you looked at the rest of the indexes available within the $_SERVER array?
  13. You could wrap that in a simple function. What makes you think a class is what you need?
  14. First, why would you want duplicate data?
  15. See http://www.phpfreaks.com/forums/index.php?topic=244703.0
  16. You really need to check your results before using them. What does mysql_error have to say?
  17. You need to actually describe your problem. We cannot see what is happening in front of you.
  18. This should get you started: http://www.phpfreaks.com/tutorial/data-joins-unions
  19. I have no idea what your talking about.
  20. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=348942.0
  21. No, there are plenty of sites around that have more than a few dozen request of the same file at the same time.
  22. This topic has been moved to Editor Help (Dreamweaver, Zend, etc). http://www.phpfreaks.com/forums/index.php?topic=348931.0
  23. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=348903.0
  24. Why on earth would you think to post this under PHP Help?
  25. I understand your questions completely. It completely depends on the framework, but yes, you still need to understand how things work.
×
×
  • 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.