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 JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=349726.0
  2. You need to use a WHERE clause to tell mysql which row you want to update. While LIMIT will limit the update to a single row, without a WHERE clause you are still not defining which row should be updated.
  3. You need to setup the timezone in your php.ini
  4. Your still not making allot of sense. What "hidden" variables are you talking about? Variables are part of server side code. There is no way to see what variables have been set without looking at that code.
  5. So you decided to open a new post on the subject? Read this again: http://www.phpfreaks.com/page/rules-and-terms-of-service
  6. Why would you post code here without testing it? What exactly do you want help with?
  7. Which user did you change it to? Not root I hope.
  8. I actually avoid that, if I may guess at what exactly you mean. If I were to go down that road then I'd want an interface that lets me build queries with methods like select() and where() and join() and such. Otherwise I'll be hard-coding SQL queries, and since all the flavors are different I'd stay away from the good pattern just so that it's more likely to be a problem in the future. Yes, I know it's weird, but if the problem is to arise I'd want it to sooner rather than later. Yeah, I completely agree, but didn't want really to dump all that on someone just starting out as well. I guess I was just trying at least point out that you should try avoid having your objects depend on hard coded extensions and that instead you should try and have them rely on an interface. If I had more time I'd like to create an example but really, even for a Saturday, I'm flat out.
  9. Did you echo $_SERVER['PHP_SELF'] to see what it actually contains?
  10. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=349563.0
  11. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=349561.0
  12. SELECT article FROM articles ORDER BY somecolumn DESC LIMIT 5;
  13. Then I don't understand the problem.
  14. Don't use SELECT *, be specific about that data that you want.
  15. There are numerous things design wise that are wrong with this class. Firstly, it is tightly coupled with the mysql extension. Instead, you should be passing a database object (implementing an interface that this class recognises) into this object. Secondly, there are several places in the class that output error messages within this class. Classes should not output anything (unless that is what they are designed to do) but instead throw exceptions or have methods simply return false. Other than that, it's a pretty good start. I would however recommend using the more common php5 syntax instead of the php4 syntax.
  16. http://www.phpfreaks.com/tutorial/data-joins-unions
  17. trq

    What is RSS?

    http://en.wikipedia.org/wiki/Rss
  18. How many posts do you want to have open on this subject? Don't double post.
  19. I wouldn't be running oowritter as root. You've just opened a massive security hole. There is nothing stoping anyone editing any file on the system as root. You need to find out exactly what group www-data needs to be in and add them to it.
  20. There is a quick start in the documentation.
×
×
  • 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.