Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. What's your sql statment?
  2. I don't really work with InnoDB tables, but it's a completely different format for both data & index files, has namespaces, etc. etc. With MyISAM, as long as the tables aren't being written to, you can safely copy FRM/MYD/MYI files.
  3. Not necessarily. The lazy way is simply to have a modified datetime field for ech record, retrieve it on page load, and then compare it before you write the data back.
  4. MyISAM tables?
  5. Since when?
  6. Where's the query log? Should be easy to find some of the pertinent update statements with string literals?
  7. Strange.
  8. There are stickies, too.
  9. There are two issues here... the database transaction, and the application level of allowing editing of the same "record".
  10. Shouldn't be... post the EXPLAIN.
  11. What version of mysql?
  12. That's not EXPLAIN output. And "refreshing 5 times" isn't an sql issue... unless your query takes forever to run.... hence the request for EXPLAIN output. Now it's your turn to be helpful.
  13. I don't see you using these functions: function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookie(name) { createCookie(name,"",-1); }
  14. You don't have any [L] there.
  15. This is mainly because distinct is a filesort operation which group by has the chance to use an index or some temporary filesorting on smaller sets along the way.
  16. this refman page has some simple examples on how to get the age... should be trivial to use BETWEEN based on this value.
  17. I mean echo the $sql variable inside the loop. PLEASE start using code blocks... I'm getting tired to re-formatting everything. Change your "saving" block to this: if ($orderId) { // save order items for ($i = 0; $i < $numItem; $i++) { $sql = "INSERT INTO tbl_order_item(od_id, pd_id, od_qty) VALUES ($orderId, {$cartContent[$i]['pd_id']}, {$cartContent[$i]['ct_qty']})"; echo $sql; $result = dbQuery($sql); } Then post the output from the echo call.
  18. It's possible to adapt mysql birthday code to handle a range... let me know if you care, I can dig it up
  19. UTF-8 can store anything... just make sure that your editor / server-side script / etc. know about this too.
  20. You can always have a summary table to keep count.
  21. Just like exists vs defined in perl.. interesting.
  22. Much easier explained by a php/ajax tutorial... but since I'm not versed in this, I can't suggest one. Must be one on the php help / ajax help board stickies?
  23. Sure he was... but his solution still wasn't a wrapper.
  24. I mean echo the $sql variable inside the loop.
  25. That's a PHP issue... with POST and isset().
×
×
  • 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.