Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Sounds like you need to trace your code.
  2. What's a "particular php"? If you mean the whole page, that's not helpful.
  3. That's quite tricky, since you have no other source for those zipcodes other than user input.
  4. What errors?
  5. You called your table "table"? Bad idea -- don't use a reserved keyword.
  6. That's ALL of your code -- try again.
  7. Why not just a simple JOIN?
  8. That leads me to believe that it's in your table twice -- or that you're not excluding the same ID from both tables.
  9. Have you tried running this in a query browser? I think it may be a quoting issue with your db class.
  10. Why not store NULL as the discount price if it's "0", as use IFNULL()?
  11. Then how can you ever have the parent node come back twice?
  12. Search engines can follow any links from any reachable page -- or via a robots.txt file -- so yes, these can get indexed even if they're dynamic. But it's easy to workaround -- just assign a unique "named" url to each page, and lookup by that instead of, or in addition to, uid, and then use these as your page links.
  13. And what does the source data look like?
  14. Say what?
  15. How about dumping mysql_error()?
  16. First, you need to JOIN the tables; then you can filter out the rows you don't want.
  17. mysql saves it as blank instead of as Null? And I'd like it to be Null if the data provided is left blank? Then show me the line that you think is translating this incorrectly.
  18. Well, the whole idea of caching is that it's faster -- and if your web server just serves up a static html page, rather than having to connect to a DB, it'll be much faster -- so MEMORY isn't going to help much.
  19. What query is pulling back these duplicates? Or are there actually duplicates in the recordset?
  20. No without stored procedures there isn't.
  21. Double -post.
  22. You can't combine LIMIT and JOIN -- you'll have to figure out which 10 you want first.
  23. I don't follow.
  24. fenway

    Looping Query

    There are stickies that talk about retrieving such data.
×
×
  • 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.