Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Add 5 days to 'now' and check to see if it is greater than 'expire'. Check out this tutorial: http://www.brightcherry.co.uk/scribbles/2009/01/06/php-adding-and-subtracting-dates/ You can use logical operators when dates are in strtotime format.
  2. In the future, please use tags around your code.
  3. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=323645.0
  4. A single '=' is used to assign. You need to compare '=='.
  5. Instead of querying the database, then going through a loop, just INSERT the data directly in SQL. Check out: http://dev.mysql.com/doc/refman/5.0/en/insert-select.html
  6. Sorry but what's the issue here? I don't even see an INSERT statement. If you're taking data from the database and inserting it back in then I don't think PHP is really needed unless you want to manipulate the data.
  7. If the id is always the same you can use str_replace. If not, use preg_replace.
  8. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=323633.0
  9. Maq

    ini_set

    Please read the manual - http://us.php.net/ini_set
  10. This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=323600.0
  11. It's easier for us if you post your relevant code and tell us what part you're having trouble with or don't understand.
  12. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=323604.0
  13. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=323012.0
  14. (Please use tags next time, thx)
  15. I think this is what he was talking about Maq Right. His previous post was actually a brand new thread, I merged it into this one because it's answering his original question(s).
  16. Please, if you found an answer to your question from another thread, it's better to put the answer there. (I merged them for you)
  17. What happens? Errors? What do you expect to happen? What makes you think something is wrong with it? We need more information...
  18. (Please use tags when posting code)
  19. (Please use tags next time)
  20. lol i was just kidding man One thing I've learned in life, don't mess with someone trying to quit smoking!
  21. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=323325.0
  22. Agree 100%. There is no reason to reinvent the wheel, not to mention the built in cross browser compatibility of most JS frameworks.
  23. You have to put the call in script tags: <br /> $("#dialog").dialog();<br />
  24. Beasley, do not double post, it wastes peoples' time, thx.
  25. Moving to JS section, also, please use tags next time.
×
×
  • 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.