Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Please echo the actual query.
  2. I'll resist the temptation to argue -- but I agree that the problem is that it's too easy to learn.
  3. The real problem is that PHP is the worst possible language to start with to learn that separation, specifically because it's a glorified template.
  4. Yeah, but never use RIGHT -- you can always re-write it a LEFT join, and that's just the convention.
  5. Let's not even entertain such an idea. The whole purpose of the separation is to force the OP to decide exactly which aspect is causing the problem -- and this also helps people resist the urge to post entire scripts.
  6. No one is going to open your word document -- summarize the relevant portions and post just those properly in this thread.
  7. Which table do you want to delete from?
  8. You mean like a "join"?
  9. Then before you order by distance, you need to "collapse" the city/state pairs -- and decide which distance to user.
  10. Why?
  11. Maybe your timeout is set too high?
  12. Sorry, I don't follow.
  13. select * from `databases` inner join `categories` on `databases`.`id`= `categories`.`id_database`
  14. Well, the last warning is "real" -- and should be addressed -- you have old client libraries.
  15. I don't see a query anywhere.
  16. Sorry, I don't understand the question. You can store text in the database, and lay it out on the page with php however you'd like.
  17. That isn't a valid query -- but the UNION approach should work.
  18. Interesting approach -- but that assumes that there are that number of records before/after.
  19. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=288109.0
  20. What do you have now? What do you want to be different?
  21. Basic SQL doesn't provide for this -- but a DB wrapper should easily be able to.
  22. I don't know what you mean -- rows are in arbitrary order unless you specify an order by clause.
  23. Sorry, I all I see is PHP code. Echo actual SQL queries, with sample output and desired output.
  24. Yes, but it's evil -- performance losses all over the place. If you're certain you won't exceed 65kB, don't use TEXT.
  25. case when placement < 5 then number_of_entrants/placement when placement = 5 then 0 else 0 end
×
×
  • 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.