Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. I would store that in a database with the rest of your config options. I don't see any need to store a user lastpost time in the users table, you should be able to get this information from your *posts* table.
  2. I would have thought the information you need would already be stored in the database on each forum post already.
  3. You check to see if a form has been submitted. eg; if (isset($_POST['submit'])) { // fetch data from the database. }
  4. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=354118.0
  5. If you want someone to work for you, post your request in the freelance board. This board is for *help* with your own code.
  6. The concept is quite simple. When a user logs in, store an there id in the $_SESSION array. You then use this to identify your user.
  7. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=354110.0
  8. You forgot to tell us what the actual problem is.
  9. Zend Framework 2 should be getting released within the next 4-6 months. I would seriously consider holding out until after that. Either that, or use Symfony2 instead.
  10. You post makes little sense.
  11. What you are attempting is a bad idea in the first place. You should be passing $_SERVER['REMOTE_ADDR'] into your objects __construct instead.
  12. That still doesn't change the fact that JavaScript and PHP are tow different languages that run in two completely different contexts. JavaScript executes client side within a browser, PHP executes server side within the server. Your code makes no sense because it attempts to mix the two together.
  13. PHP and JavaScript are not interchangeable. Your code makes litte sense.
  14. Hehe, that doesn't make much sense. The L in LAMP stands for Linux.
  15. Actually, looking at your code again, your not even using the $db variable you've pulled in using global.
  16. It has nothing to do with safety and everything to do with poor design. Your insert() function now relies upon some $db variable being defined in code that it has no control over.
  17. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=354010.0
  18. Your looking in the wrong places then. That is one thing with PHP though, there is more bad code than good out there.
  19. It's pretty obvious what OS, just looking at the path.
×
×
  • 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.