Question:
what is shopping cart in php? write a simple code to make a cart of two items?
Dine
2007-06-26 07:30:03 UTC
what is shopping cart in php? write a simple code to make a cart of two items, how to make fields in database and what should be their names? how to use session variables in making cart?write code, how is webpage made on localhost is sent to remote server to make a website? what is FTP and loader?
Three answers:
Peter_AZ
2007-06-26 13:11:07 UTC
A shopping cart is a program on a web server which allows users to select items from a "catalog" (a list of items on the website). It saves the list of what's ordered until checkout time, where the total cost is calculated and the user enters payment information.



In general, it uses a database, first for the information about the items, and second, for the list of what's been ordered. Beyond that, it may save user information, and so on. Session variables keep track of the users, so information is "remembered" from screen to screen and the program can handle simultaneous multiple users.



I've written shopping cart programs for classes, one in Perl, and one in ASP. I haven't done it in PHP, but it wouldn't be much different from the ASP version. Neither was "simple code," both took a couple weeks to program and involved several viewer screens besides the catalog. You're not going to get help on writing a project that size out of Yahoo Answers.



A shopping cart page is generated on the remote server, not on the local host (the user's machine.)



I hope this clears things up a little, at least so you'll understand what you need to do.
?
2016-10-03 08:05:51 UTC
i could save a hearth extinguisher reachable for whilst the "F" golden-spoon-fed teenage rats with a gallon of gasoline and an comparable ignition source “cometh” calling interior the direction of the nighttime! Sorry, i know you have been looking forward to a extra philosophical, romantic, and/or lighthearted answer. no longer THIS TIME, i'm AFRAID. The plight of the homeless is in simple terms too close to and high priced to my coronary heart to make easy of as though it grow to be a activity. The stench of a nil.5-crisped guy death in soreness (as though the soreness and indignity of homelessness wasn't sufficient) isn't some thing that possible, or could, fairly overlook. human beings could be flabbergasted to correctly known what share families in our good previous USofA are a single charge / ailment / minimum-salary paycheck faraway from homelessness & entire disaster and that's the poor reality approximately this maximum grotesque social ailment. And no i'm no longer speaking some bunch of no-good lazy bums! i'm speaking approximately first rate, hardworking families with youthful little ones. If i'm initiating to sound like a freaking baby-kisser working for workplace, I assure you, i'm no longer. Nor am I a bible-thumping, Jesus-respiratory enthusiast who grants human beings a warm meal in exchange for an unceremonious heavenly brainwash. I’m basically a median individual who cares. That pronounced, i think of after months of Y!A interactions i know your coronary heart - i know you're a first rate, clever, and being concerned man or woman - so PLEASE, do no longer take something that i could have pronounced here as a fact against YOU or perhaps your question. … I ask for forgiveness for being a social gathering pooper this time, yet particular matters decrease too deep. ... Peace to you sometimes, my expensive chum. .
lancej0hns0n
2007-06-26 07:35:47 UTC
you're just rambling - take some time to think your question completely through and then formulate (and type in) your newly intelligible question - good luck with that


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...