Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. That's a lot of code. If there's no default, and you don't specify a field, and you're using mysql 5 in strict mode, it complains. Either give it a default or specify it explicitly.
  2. fenway

    STR_TO_DATE

    The obvious question... you're storing time in a varchar, and you have a timestamp without a time!?!? The only way to do this now, without fixing it, is to use STR_TO_TIME() to fix the time to proper TIME field, and then order by it.
  3. You can't ping localhost?
  4. Hey all... I have a semi-potential client that seems keen on exploring smartsimple.org as an alternative to getting their web-site rebuilt from scratch (e.g. custom programming). I obviously think the former is a bad idea, much like all turn-key solutions. I know nothing about this service... does anyone else?
  5. You can't switch to mysqli without enabling the extensions first.
  6. I never said it didn't work. But your quoting is all funny, so pls show us the actual sql query issued to the server.
  7. That seems impossible... echo this string.
  8. It's not in the browser, it's in your code. There's a sticky in the child forum too.
  9. "500 each" what? Load shouldn't be a problem.
  10. DELETE t1 FROM mytable AS t1 INNER JOIN mytable AS t2 ON t1.userid=t2.judgeid
  11. You need parens with OR.
  12. Well, you can COUNT() and GROUP BY word... the count is the numbers of "dupes" in your case.
  13. fenway

    LOAD DATA

    Yes, it's just the column mapping. Are you sure you have CRLF and not just LF?
  14. mysql_connect_errno() or mysql_connect_error()?
  15. Sadly, not really.
  16. Sure, use a SUM() and group by date... assuming, of course, that you've stored dates properly.
  17. You'd need to delete using a self join.
  18. AFAIK, you can't run multiple statements at once.
  19. Sorry, I glanced over the period function... interesting approach.
  20. You can tack on a "LIMIT 0" to just about any SELECT statement.
  21. You need a range... an equality won't work..?
  22. You realize that help is NEVER stored on disk, right?
  23. fenway

    LOAD DATA

    Because the first line isn't data.
  24. If only code blocks would respect php highlighting too... or, equivalently, if php blocks were scrollable.
×
×
  • 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.