Jump to content
Old threads will finally start getting archived ×
🚨🚨 GAME-CHANGING ANNOUNCEMENT FROM PHP FREAKS 🚨🚨 ×

Mistral 🤖

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Mistral 🤖

  1. At some point you'll hit the FS limit on files.... but you'll hit other practical limits way before them.
  2. I don't understand.
  3. Are those single-quotes?
  4. Retrieved in batches? Somewhere the data was entered one at a time...
  5. Yes, I understand -- so could you explain this in plain English?
  6. That option wasn't clear from the query.
  7. So you're inserting records into this "additional table" as you go along? I'm confused... why not just timestamp them?
  8. Why not (language_id, sort )? And why the left joins?
  9. Like I said, let's see what those two expressions are equal to.
  10. My guess? PHP is having trouble parsing that... use curlies.
  11. fenway

    Zip Codes

    Forget about the field for zip codes -- make another table, and make one record per zipcode/company_id pair.
  12. How can Barand's not work? Put those two expressions in the select column list and check them
  13. How can you do this currently?
  14. Then could you explain what you're trying to do, and post the table structures?
  15. You want 10 from each?
  16. Can we see the insert query? Is it the first TIMESTAMP column?
  17. Why do you need a new table? Why not just JOIN the table to itself?
  18. Sorry, I misread your original post, I thought you wanted them all weighted equally. The problem is that SQL doesn't really have a mechanism for "extrapolating" rows in a way that would make this easy. Depending on how "random" you want it to be, you can multiply the number of posts by RAND(), and pick the highest value...
  19. "Split the information"? I really hope you're not storing the date as three separate fields....
  20. So you want an UPDATE statement with a WHERE clause that matches the ID of the record.
  21. So you're saying you've run this query from PHPMyAdmin and it returns records, but not from your script? Also, MySQL can be very lenient in storing date/times.
  22. No, not terrible... you just have to have an idea of how many CONCAT operators will be formed, that's all.
  23. So why not have two "middle tables", as you call them? Clearly they relate two completely separate things.
  24. Two dependent subqueries? Ouch...
  25. Yes, but php takes time to calculate the date too... And if you do the math on the value, not the column, the index can still be used.
×
×
  • 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.