Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You're right... so don't use "*", ask for the fields you want back so that they "line up".
  2. Let's keep the discussion to the boards, please.... You're LEFT JOIN-ing the ad_log table, so you need to move any conditions (like sess_id) to the ON clause, not the WHERE clause, or you won't get the "0" you want. It's that easy.
  3. If you deleted the table, the query cache would be purged... something else is going on.
  4. Post some sample data.
  5. Why is your variable not being interpolated? Isn't it in double-quotes?
  6. I don't see the purpose of the group by, since it's on an ID field, and will do nothing but slow down the query. And if it were on a non-unique field, the non-group'ed by fields would be meaningless. If you were running this in MySQL 5 with strict mode, mysql would complain.
  7. Um, you can't group by something and then retrieve a whole bunch of other fields.
  8. Well, if you can't unserialize() in mysql, then you're stuck.
  9. I don't know what you're trying to do, but IF() expressions can help in sql.
  10. I'm confused by the math... what are you trying to count? And for SUM, why isn't the difference inside the parens?
  11. Yes, it would be... I'm actually surprised they still use the old libraries. Can you simply update the password with OLD_PASSWORD()?
  12. Well, you're not catching mysql_error() after that query... echo $sql.
  13. It's called my.cnf (Linux) or my.ini (Windows), usually in the home directory (Linux) or the Windows directory.
  14. Well, the best option would be to get the new client libraries... can you do that?
  15. Echo the $sql variable in PHP... and I assume you're catching errors in mysql_query() and checking mysql_error().
  16. This has nothing to do with ASP vs. PHP... you simply have old client libraries for mysql... see this link.
  17. Could you echo sql?
  18. Not sure how that would have solved it.... but servtype can't be equal to 2 things at once!
  19. You can change this limit if you have control of the server....
  20. .... like not inserting any data, for example.
  21. Which query is generating that error?
  22. Could you please post your solution for the benefit of others?
  23. Assuming there are myISAM tables
×
×
  • 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.