Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. "LOCK TABLES" isn't valid mysql syntax -- it's LOCK TABLE -- so I'm confused.
  2. And post the working query.
  3. Then you'll probably be ok.
  4. It's close implicitly because the php thread terminates.
  5. I'm confused... to use INSERT INTO... SELECT, you need to specify the column names for the insert table -- so (a) they shouldn't be quoted and (b) it can't possibly make sense to use variables here. My guess is you want: $add_info = "INSERT INTO $Log_tbl ( Uname,CurDate,StartTm,EndTm,IPadd ) SELECT Uname,CurDate,StartTm,'$EndTm',IPadd FROM $Active_tbl WHERE $Active_tbl.Uname ='$UserID'";
  6. Nice... didn't even realize that was the point of the query ;-)
  7. Just remember that even though VARCHAR is better than TEXT, any temporary table operation (e.g. filesort from grouping/ordering, subqueries) will silent convert VARCHAR to CHAR, so it will take up the maximum amount of bytes! So use the "full length" with caution
  8. Yeah, drop the parens... I assume that worked.
  9. Impossible to say with so little info... but I wouldn't worry about it.
  10. Are you sure you've configured PHP accordingly?
  11. Like with INSERT INTO ... SELECT WHERE?
  12. the first two NULL keys suggest otherwise.
  13. It's just that MySQL handles TEXT fields very poorly... if you must have them, consider have them in a separate table, or at the very least, not retrieving them with * ever.
  14. Sounds like something a basic tutorial (like the ones of phpfreaks) could cover... anything specific?
  15. Yes, I believe that it does... there would be no reason to update the indexes until you were "done".
  16. Yup.
  17. fenway

    order by

    Show us the query.
  18. Yes... please DO NOT store <BR> in the DB.
  19. Yeah, no valid syntax there.
  20. I'm sorry, whats the DB issue?
  21. You should be converting your dates to proper SQL-99 format: YYYY-MM-DD. STR_TO_DATE() can help you.
  22. It will do it on each row unless you use LOAD DATA... but you can DISABLE KEYS and/or LOCK the tables, too.
  23. What?
  24. Can't that be written as a left join? NOT IN is bad for performance.
  25. Sorry, now you've lost me completely.
×
×
  • 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.