Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. 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.
  2. This link should help you.
  3. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=354110.0
  4. Where exactly are you stuck?
  5. You forgot to tell us what the actual problem is.
  6. 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.
  7. Yeah, you don't want to be using a redirect.
  8. Of course.
  9. You post makes little sense.
  10. What?
  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.
  20. Yes it's a bad idea. So is using the global keyword. This suggests that whatever examples it is your looking at are crap.
  21. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=354053.0
  22. Your post is very unclear. What exactly is the issue?
  23. I understand *what* your trying to do and as I stated, it is quite a common design. You haven't said where you are stuck.
  24. Simply echoing it wont work. You need to send the data back to JavaScript and then have JavaScript place the output in some element on the current page.
  25. This is a pretty straight forward and common approach, where exactly are you stuck?
×
×
  • 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.