Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. See the FAQ/Code Snippet board.
  2. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=328623.0
  3. Post your code.
  4. All your above example does is assigns a string to $username and another to $password. So yeah, it's a little more complex than that. If however you are going to be using a database eventually you may as well do it now. It is a relatively simple concept.
  5. Obviously, you need to add it within the right place. $traderss1=mysql_query("SELECT * FROM `poke_owned` WHERE `box` = 1 AND `trainer` = '" . $trading->username . "' AND `traded` = 0 ORDER BY `name` ASC");
  6. "the code changes to yellow" means nothing to me. Maybe it's an issue with your editor, there is nothing wrong with the code.
  7. This topic has been moved to Installation & Configuration Issues. http://www.phpfreaks.com/forums/index.php?topic=328636.0
  8. Just like the example shows. What is the issue?
  9. Firstly, session_register & session_is_registered have long been deprecated and should no longer be used. You might want to check the manual in regards to how to use sessions. As for your question, as you log your user in, simply store there user level (your already querying for all * a users information yet failing to use what is relevant) within the $_SESSION array and check it whenever required.
  10. I would be more inclined to execute a command line program via exec and get it all done in one go.
  11. You can use the exec function to execute the mysqldump command.
  12. http://en.wikipedia.org/wiki/Cron
  13. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=328588.0
  14. $_REQUEST is an alternative to $_GET, $_POST and $_COOKIE, it doesn't contain $_GET, $_POST and $_COOKIE as keys, but rather the data contained within $_GET, $_POST and $_COOKIE merged into a new array called $_REQUEST.
  15. What makes you believe this is a good design decision?
  16. Field identifiers are not strings (are not surrounded by quotes) in SQL. You should also enable error reporting when developing and always attempt to catch errors in your code, you have done nothing to check if your query succeeded or to indicate why it has failed.
  17. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=328462.0
  18. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=328435.0
  19. Template systems are overkill IMO, there are better ways of separating code (logic) from presentation (markup) without the extra overhead. A well designed application should allow most (if not all) of your logic to be separated from markup with only minimal amounts of PHP ending up amongst your HTML. I've posted an example of this on the boards here before, I'm not sure this was the exact one I was thinking of but it's about all my search could find. See http://www.phpfreaks.com/forums/index.php?topic=320371.msg1510211#msg1510211
  20. The location of your logs is determined by a directive within your php.ini.
  21. In your $needles array, your using backticks instead of quotes.
  22. You are already within a php block, so the <?php ?> are taken literally as strings.
  23. This topic has been moved to PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=328410.0
  24. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=328295.0
  25. Zend is the company that makes PHP, PHP runs on the Zend scripting engine, this has nothing to do with the Zend framework (though the same company produces that). What framework you should use is up to you.
×
×
  • 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.