Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. That's impossible... it won't update other fields... there must be another statement somewhere.
  2. You'll need to use an IN() for the mysql... and you'll have to get php to give you a comma-separated array.
  3. No-one can possibly understand that query formatted as such.
  4. Not helpful whatsoever... and use code tags next time... except don't post the whole code anyway.
  5. What does the error log say?
  6. Or with a CASE statement: UPDATE yourTable SET bankmoney = CASE WHEN bankmoney >= 50000 THEN bankmoney*.02 ELSE bankmoney+1000 END Assuming NULL isn't an option.
  7. Is your DB query working? Because this sounds like a PHP issue.
  8. That '@' sign isn't leading....
  9. you sure that's a proper variable?
  10. Because you have no join condition, amongst other things.
  11. Find that strange.... it should be taking up at least ~20MB regardless because of buffer sizes in the my.cnf file. Try running this script and see what you get.
  12. Just realize that this solution may not be thread-safe.
  13. It's only "low" when compared to SELECT statements.
  14. You can only retrieve the value you used to aggregate the COUNT()... in this case, "fieldname"... which means that if you want the other value for the "top" record, you'll need to join this back to the original table.
  15. Or EXTRACT(YEAR_MONTH FROM GA_Gig.date) = '200810'
  16. You CANNOT use * with group by.
  17. Should be able to MOD that rather easily.
  18. Well, have you read the refman page on LOW_PRIORITY/
  19. No need for view or SPs unless it's really complex.
  20. You could always have started the server and skipped grants.
  21. It's impossible that echo-ing a single line messes up the rest of the page.
  22. Please echo $sql.
×
×
  • 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.