Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You mean the unique index? It's unique so if that index exists or primary key exists then it will delete the row and insert a new one, which essentially is updating it. If they don't exist, it will insert a new row. I'm not sure how else to explain it. Maybe I'm just confused about what you want.
  2. What's the diffrence between UPDATE and REPLACE? Did you read the link? It essentially updates the table if the pkey or unique index exists, if not, it will insert.
  3. Why can't you use REPLACE INTO?
  4. Your life? I think that's the problem.
  5. Can we see your current code?
  6. I would imagine the best way to do this is to have a table for product categories. Then in your products table assign each product categorie(s).
  7. The sad thing is, people who create these titles don't read rules, stickies, guidelines, not to mention signatures. Even if they did, do you think they would actually listen...?
  8. Something like this: echo "{$row['name']}";
  9. Has your question been answered?
  10. I literally copied and pasted your question into Google search and didn't even have to click on a link to get the answer.
  11. If you haven't, read this: http://php.net/manual/en/features.cookies.php
  12. Post your updated code with the exact error message.
  13. That doesn't matter. I don't see how you're not seeing a fatal error for not closing your echo string: echo " ...success code...
  14. Not implying you shouldn't initialize your variables, but the empty() method checks if the variable is set I think.
  15. Please use tags. Please post the exact error.
  16. As long as you have session_start on each page it should exist. Did you change it to read 'F'? Try echoing out your session variable to see what the value actually is. If you ever receive a blank page, try turning on error reporting by placing these 2 lines directly after your opening <?php tag: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  17. Store the information with a timestamp. Then you will have the ability to extract stat information for any time frame.
  18. Yes, that's always a good idea. I've seen many get burned because they didn't backup, myself included.
  19. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=320165.0
  20. I'd imagine there would be. Why do you want to do this anyway? Where is the rest of your site hosted and why can't you serve MySQL from there?
  21. Maq

    AJAX Search

    Here are two examples: One with JQuery - http://andreaslagerkvist.com/jquery/live-search/ One with raw JS - http://www.w3schools.com/php/php_ajax_livesearch.asp
  22. It's not going to work CnP, you will have to fix it up to work. Have you got everything working?
  23. Maq

    AJAX Search

    So what's the problem?
  24. Next time you get an error, please post it.
×
×
  • 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.