Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Unless you wanted to write a stored procedure, it's probably easier to simply pull each merchant record, grab the products field, split by comma, and then insert a new record into the merchant_product table with the appropriate merchant_uid.
  2. This doesn't seem like a small project...
  3. Well, the inserting is more critical at this stage. Are they all separated by commas, all the time?
  4. To automate the searching or to automate inserting all of these records?
  5. The problem is you have a list of products... you need another table, merchant_products, one for each product with a merchantID link.
  6. Forget about what you want to do with "clicking" -- that's not a DB question. You first need to import these data... do you have a separate file for each merchant? How is the link identified in the raw text file.
  7. I have no idea what you want... perhaps you meant to post thisin the freelance section? Help with what? According to your post, there isn't even a db?
  8. Also, the table structure, and the insert statement in question.
  9. Echo the $sql variable for each flow path. It's much easier to collect each condtiion, then build the where clause at the end (i.e. by join-ing an array with ANDs). You still have unpaired parens.
  10. wb... you may want to read though this thread first... no cause for alarm (anymore). edit by redbullmarky: link fixed
  11. You're missing an open paren in nam2.
  12. So this text file is not in the database? Or you want to produce this file?
  13. At this stage, only with a trigger.
  14. You can use LAST_INSERT_ID() to get back the user_uid... and use this in subsequent inserts. You can also have the relational table have unique index contraints. But "making sure" is still ambigious.
  15. Turning column values into column names is quite difficult to do "a priori".
  16. I don't know what you mean by "inserts the values of the relationship".
  17. what do you mean "list of products ordered alphabetically"?
  18. And you check the my.cnf file as well as the grants table?
  19. Why not check if a given interval is > 24hrs?
  20. You have the wrong password, or you're connecting from the wrong host.
  21. You need to read the list of incompatible changes on the mysql site.
  22. actually that's the only way. well, the most logical without subqueries.
  23. No, seems great.
×
×
  • 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.