Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Barand's in a good mood this week -- this usually isn't the place if you want someone to write a script for you.
  2. If you're talking about important data, then the source of the data isn't really the effortful part here.
  3. I don't see how you've isolated MySQL as the culprit here -- check the output HTML.
  4. Auto-increments means "I don't care about the value you choose".
  5. This really up to the driver -- MySQL faithfully returns types.
  6. LAST_INSERT_ID()
  7. Don't post the entire code; you've been asked to show errors as well as table structure, but you're provided neither.
  8. fenway

    DISTINCT ID

    You can't apply DISTINCT to a particular column -- it operates at the record-level. What are you trying to do?
  9. Didn't want to open a new thread just to drop a note that I'll be AWOL for a week or so.
  10. Save what? The binary contents?
  11. Are you you're accessing that recordset correct? Try vardump.
  12. Are you asking us what a PHP function is?
  13. And please stop posting all of your code unless it's directly related to the error.
  14. fenway

    SELECT rank

    Well, you're trying to use the alias of a colum in the SELECT list in the ON clause -- but the aliasing happens on the return, long after the JOIN.
  15. What's more, all the counts from the same table can likely be cominbed.
  16. Well, if you have binary logging / query logging enabled, you'll have something useful -- but the records are gone.
  17. That's what mysql_error() is for. But the real issue is that you're confusing backticks and quotes -- ` is not the same as '.
  18. Why would you randomly delete a file created by mysql?
  19. 1. Well, '%' includes localhost, but typically localhost permissions are less restrictive. 2. Yes, IP would be the best way to go -- usually, web users connect from your web server to your DB server -- and the former almost always has a static/virtual IP (or small range). 3. There is no such inheritance -- one sets of privs for each user/host. More restrictive first, IIRC, in terms of host.
  20. @ignace -- I'm sure this is one of the preferences -- it's just that I wasn't expecting to see your name attached to them (yet).
  21. Double-post -- topic locked.
  22. You already posted this topic -- I've removed the other once, since this is clearer. But I still don't understand -- are you asking us to write the update/POST steps?
  23. That explains all the user warnings e-mails I've been getting all week....
  24. Describe this "piece of data".
  25. Well, it's clear that whatever you think PDO is doing to that query, it's not -- there is no colon in the column name.
×
×
  • 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.