Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. That's not the code that's generating that error.
  2. Why do you think you need new columns?
  3. That's not what I meant -- I meant you're not cleaning those input values to protect against SQL injection.
  4. Without a DB wrapper, they're both wrong.
  5. You need to read a PHP syntax manual.
  6. If you're dynamically changing the number of columns, you're doing it wrong.
  7. Show us EXPLAIN output.
  8. You don't need to switch the column, unless you always mean that -- you can just collate in your query.
  9. I'm guessing -- depends how you're populating and pulling from that DB.
  10. You're new -- read the terms of service.
  11. Sure -- but for anything other than a single, correctly-spelled word, you're S.O.L.
  12. "Showing" has nothing to do with mysql -- you need the correct query to get the desired value first.
  13. I have no idea how you know which one should be next.
  14. That's what FULLTEXT is for.
  15. I think you mean SUM(credits) -- and obviously, with some sort of link between the 2 tables.
  16. I'm guessing the load is the curl part -- not sure what the db has to do with this.
  17. Then your only choice is timestamp vs date -- choosing the latter is really only advantageous with timezones.
  18. We're at 30+ replies and we're going around in cricles.
  19. There are dozens of ways... I have no idea how you're connecting to your DB. Something as simple has a modulus based on the seconds of the day would work.
  20. Echo the query and the error.
  21. You need to JOIN those other tables first.
  22. That's becuase your BETWEEN is wrong -- needs to go from low to hi.
  23. Why do you need this, anyway?
  24. There is no such thing. Besides, aren't you the one changing them/
×
×
  • 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.