Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Why isn't this in the onsubmit handler?
  2. See here -- LOCAL is a potential security hole, so it may be off by default.
  3. Assuming "status1" can be evaluated as some sort of expression/query, you can use subqueries to extract this at once....
  4. You definitely don't want different databases... in fact, you don't even want different tables for each customer. Just add a customerID field, and tie it to a customer table.
  5. They're not the same... read this.
  6. I find that once you reach a certain level of competency the questions you post are unanswerable by almost everyone. No kidding... I think I've posted maybe 10 times total, and I'm 0-for-10. Maybe we need a "superfreaks" forum ;-)
  7. group_concat, then.
  8. I don't think you do... explain.
  9. I still don't see the query and it's EXPLAIN output.
  10. From which statement?
  11. Yes, it is an issue ... I did download the page and worked on a local copy (using IE6). And yes, I understand what you're trying to accomplish. "hidden" definitely has to be quoted, if it worked before, it was simply because e.type == 'click" evaluated for false, hence the second condition was never evaluated. I decided not to look any further at that point.
  12. I'm guessing either e or event doesn't exist.
  13. There is an optional SET caluse.
  14. insert... on duplicate update...
  15. Let's see EXPLAIN, table structure, etc... have you run analyze tables?
  16. I guess it's Barand's decision -- but if you _did_ plagerize (which you don't need to), then why pretend that you didn't? It's your homework, not ours... take our advice, but don't copy it.
  17. What is "first"? Always by date?
  18. Well, my guess is that it would be a hierarchy. That is, a table with fields such as user_id, board_id, topic_id, message_id, and a date/time. You simply add whatever level of detail is necesarry -- if someone selects "mark board as read", leave out topic/message... etc.
  19. I think SMF uses a date.
  20. No, it goes: $result=mysql_query("SELECT *, DATE_FORMAT( mytimedatefield, '%d-%m-%Y ) as pretty FROM mytable WHERE id=12")or die(mysql_error()); $row=mysql_fetch_array($result); $mytimedatefield=$row["pretty"] ; echo $mytimedatefield ;
  21. What part of this is mysql related?
  22. I'm very confused at to what you want. EDIT: Thread continues here.
  23. Sounds like a job for group_concat().
  24. That's about the same thing... 30 seconds may be a bit frequent.
×
×
  • 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.