আগামী ২৩ অক্টোবর -২০১৭ তারিখ থেকে শুরু হচ্ছে পাঁচ মাস ব্যাপী Professional Web Design and Development with HTML,CSS,Bootstrap,PHP,MySQl, AJAX and JQUERY কোর্সের ৮৬ তম ব্যাচ। আগ্রহীদেরকে অতিসত্বর মাসুদ আলম স্যার এর সাথে যোগাযোগ করতে অনুরোধ করা যাচ্ছে। স্যার এর মোবাইল: 01722817591, Email : [email protected] কোর্সের সিলেবাস এর জন্য এখানে ক্লিক করুন ।
78 comments on “Build a Shopping Cart With PHP Part-1
    • First i wanna thank for the great tutorial Mr Masoud.
      Here is the problem :

      Replace This with the ones in the code =>

      if(isset($_SESSION[‘SESS_LOGGEDIN’]) == TRUE)

      {

      echo ‘Logged in as ‘ . $_SESSION[‘SESS_USERNAME’] . “[logout]”;

      }

      else{

      echo “Login“;

      }

      And this one also : =>

      if(@$_SESSION[‘SESS_ADMINLOGGEDIN’] == 1)

      {

      echo “[admin][admin logout]”;
      }

    • First i wanna thank for the great tutorial Mr Masoud.
      Here is the problem :

      Replace This with the ones in the code =>

      if(isset($_SESSION[‘SESS_LOGGEDIN’]) == TRUE)

      {

      echo ‘Logged in as ‘ . $_SESSION[‘SESS_USERNAME’] . “[logout]“;

      }

      else{

      echo “Login“;

      }

      And this one also : =>

      if(@$_SESSION[‘SESS_ADMINLOGGEDIN’] == 1)

      {

      echo “[admin][admin logout]“;
      }

      • Hi sir after i make the changes in header.php
        as
        if(isset($_SESSION[‘SESS_LOGGEDIN’]) == TRUE)
        {echo “Logged in as”. $_SESSION[‘SESS_USERNAME’]. “[logout]“;
        }
        else
        {
        echo “Login“;
        }

        i m getting this error

        Parse error: parse error, expecting `’,” or `’;” in C:\wamp\www\go4shop\header.php on line 27

        pls help

  1. hi sir,
    i need your help urgently.
    Notice: Undefined index: id in E:\xampp\htdocs\products.php on line 11

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in E:\xampp\htdocs\products.php on line 15

    i dont know where is the fault.i hope to hear from you soon.thank you

  2. hello sir i just learnd php short cource and i know little bit about it can this pos post is help full for me for making shopping cart? plz tell me

  3. Hello,

    I have studied the above full code & I started working on it,
    When I run the project (localhost/go4shop). It gave me lot of errors. Which I rectified, but I found that some files are missed out in this tutorial like (‘showcart.php’, ‘addtobasket.php’). If you can, please provide me with the files.
    Thanks & regards,
    Srinivasu.M

  4. Sorry i have done some mistake in asking question.
    I am getting some error during data insertion in table customers.
    Please help me.

    Error are here

    #1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘data-cfemail’);if(a){s=”;r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){‘ at line 3

  5. Fantastic tutorial.. Got a question. is the login system required in it, as in does the user have to login/register to buy things

    Thanks

  6. thanks, I am building this kind of shopping cart too now for my computer course and these are good instructions, I wish I’d be more skilled with SQL though

  7. Hello

    Thank you for making this tutorial available to us. Also we would appreciate if you can make available for download the files used in this tutorial, as when following this tutorial and the next tutorial to complete the project; I am getting a lot of errors and I am unable to correct all of them.
    Thank you

  8. Hi

    Trying to get this cart to work from the instructions and I keep coming across issues with the connections/ showing of the results of tables info due to "

    How do I get around this as I have fixed the header but then I have got the same issue on footer and products

    Thanks in advance

    Martyn

  9. Some serious issues, but fixed all of them, also noticed some unnescary code, alot of the includes for config.php can be delete, also sessions() aren’t used in PHP 5.4 anymore. But once all of it is working, its a good little system. Im working to expand this and bring it up to date, i got a fully working system now.

    • Can you help me with this problem?

      Parse error: syntax error, unexpected ‘.’ in /Applications/XAMPP/xamppfiles/htdocs/VACO/header.php on line 27

      after i make the changes in header.php

      if(isset($_SESSION[‘SESS_LOGGEDIN’]) == TRUE)
      {echo “Logged in as”. $_SESSION[‘SESS_USERNAME’]. “[logout]“;
      }
      else
      {
      echo “Login“;
      }

      still don’t work

  10. Could you please tell me where to add the admin login link ? footer file will show the admin related links only after admin get logged in. I dont see any link calling the admin login file.

  11. hey thanks for the tutorial but am having an error at this point
    {

    echo “Logged in as ” . $_SESSION[‘SESS_USERNAME’]. “[logout]”;

    }

  12. And also i got an error on product.php
    The code is echo”
    … It doesn’t display the product table .. So please help me..

  13. Notice: Undefined index: id in C:\wamp\www\products.php on line 6
    i got this error while running the product.php code
    need some help

  14. Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\products.php on line 8
    got this error again in the same file code “product.php”
    some one make me clear

  15. Pingback: Php Shopping Cart Paypal | Home

  16. Pingback: Free Php Shopping Cart Script | Home

  17. Pingback: Shopping Cart Php Script |

  18. Pingback: Bootstrap Shopping Cart | emergingloan.com

  19. Hi.
    Thanks for the tutorial. It’s very helpful. but I’m looking for the register.php page code, anyone have it?

  20. Salam, I have a question. I have set up the code and database in my laptop properly.However , I cannot login into the website as admin. Can someone answer me?

  21. Pingback: Paypal Shopping Cart Example |

  22. I don’t even know how I finished up here, but
    I thought this submit was great. I don’t recognize who you’re
    however certainly you’re going to a well-known blogger when you are
    not already. Cheers!

  23. Hi there very nice website!! Man .. Beautiful ..
    Wonderful .. I’ll bookmark your web site and take the feeds also?

    I’m glad to find so many useful information right here within the post, we’d like work out extra techniques on this regard, thank you for sharing.
    . . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *