Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Sometimes magic_quotes can be enaged.
  2. There's obviously some collation that was missed... post the detailed column info for each table involved.
  3. This doesn't sound like a mysql question....
  4. Agreed... you may want to store them in the DB after all....
  5. There are two different syntaxes, though the latter is more common.
  6. So what do you have now? what error do you get when you add back the order by?
  7. It's not solved until you tell us how....
  8. What are the collations for the tables/columns?
  9. Post what you have so far, and I'll show you how to inject this.
  10. Yes, well, if you've already authenticated the user, you can spit out UIDs, but they can still change them in the hidden inputs... so as long as this won't result in them editing someone else's record, that's fine... hence the security issue.
  11. I do this sometimes, but not very often... even so, a TIME field is always the best choice vs TIMESTAMP.
  12. We're just looking for some effort on your end to work towards a solution.... select t.id count(p.question_id) from topics as t left join posts as p on p.question_id=t.id group by t.id Will give you the # of posts per topic. If you want to deal with subcategories, you'll need to join them in as I said earlier.
  13. You just need to join in the players table.
  14. Actually, didn't realize it was based on the current time, so it's a bit different: SELECT some, fields FROM mytable WHERE `time` BETWEEN CURDATE()+INTERVAL 9 HOUR AND CURDATE()+INTERVAL 9 HOUR-INTERVAL 1 DAY
  15. What have you tried? Whare you uploading it to?
  16. Agreed... don't reset IDs, unless you blow away all of the data in the table, in which case use TRUNCATE, not DELETE.
  17. Which is why I said you'd have to replicate the directory tree containing the images...
  18. Don't know what you mean about unique rows... if you're only using a single table, a row can never be returned twice.
×
×
  • 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.