10 responses to “How to Dynamically Generate PayPal Add to Cart Buttons with PHP and MySQL (Beginner Tutorial)”

  1. Adzi

    Hallo!
    I`m connecting to my database as You have shown, but sometimes connection to the database is lost during loaging of the page… any idea what can I do?
    .-= Adzi´s last blog ..Dzisiaj naprawiłem całkiem ładny kawał laptopa =-.

    1. Ryan

      Hi Adzi,
      Is this happening on a site that is live? Or a site that is on your local computer? If it is on your local computer, you want to try connecting to “localhost”.

      If the site is live and you are losing the connection, that might be an issue with your host. You can try contacting their tech support and ask if they have had any server outages.

      If you can elaborate more on your problem with more details, I would be glad to offer any help that I can.

  2. Adzi

    It’s happening on a “live” site, yes. I suppose that everything is fine with Your code, and hosting is just bad – it is free one You know. When I refresh site it connect just fine.
    On another page I found the same problem I the reason was hosting as You suggested.
    Thanks for reply.
    .-= Adzi´s last blog ..Zmiany w wyglądzie google ciąg dalszy =-.

    1. Ryan

      Your host might be the problem. There are a lot of very affordable hosting plans out there that offer MySQL databases, they might be worth looking into.

      I hope I helped, or at least provided you with some info! Feel free to ask again if you have any other problems!

  3. Dave George

    Great idea even for experienced guys !

    1. Ryan

      Thanks Dave!  I should probably revisit this post and touch it up a bit.  I’m glad people found it helpful!

  4. Dating sites

    I have been visiting your weblog for a while now and I usually discover a gem in your new posts. Thanks for sharing.

  5. jigsaw puzzle games

    Aw, this was a really nice post. In concept I wish to put in writing like this moreover – taking time and precise effort to make an excellent article… but what can I say… I procrastinate alot and on no account appear to get something done.

  6. Kala

    Hi Ryan,

    Can you send me the link of your next post of dynamically creating a add to cart button?

    Thanks,
    Kala

    1. Ryan

      Hi Kala,

      I apologize, I should have included a link in this article. Anyways, you can view the second part of the post at How to Dynamically Generate Paypal Add to Cart Buttons with PHP and MySQL.

      This tutorial is a little old, and one thing to keep in mind for projects is the availability of all the Open Source shopping cart software out there.

      I hope this helps! And if you have any questions, please feel free to ask! Good luck!

Leave a Reply

Link to your blog?

CommentLuv is enabled! Enter your blog in the "Website" field and you can choose to get a Dofollow link back to your most recent post! Comments may be edited or deleted if they contain offensive material or spam. I love hearing other peoples' thoughts, but please contribute to the topic! I reserve the right to edit or remove comments upon my own discretion.

Back to Top ↑