{ "key_pair_value_system": true, "answer_rating_count": "", "question_feedback_html": { "html_star": "", "html_star_feedback": "" }, "answer_average_rating_value": "", "answer_date_js": "2024-09-02T12:23:23-04:00", "answer_date": "2024-09-02 12:23:23", "is_docs_available": null, "is_excel_available": null, "is_pdf_available": null, "count_file_available": 0, "main_page": "student_question_view", "question_id": "8936055", "url": "\/study-help\/questions\/solve-for-4-5-and-6-on-the-comments-8936055", "question_creation_date_js": "2024-09-02T12:23:23-04:00", "question_creation_date": "Sep 02, 2024 12:23 PM", "meta_title": "[Solved] Solve for 4, 5, and 6 on the comments. | SolutionInn", "meta_description": "Answer of - Solve for 4, 5, and 6 on the comments. | SolutionInn", "meta_keywords": "solve,4,5,6,comments", "question_title_h1": "Solve for 4, 5, and 6 on the comments. Cart Contents: Add to your cart: Dog Cat Hamster ", "question_title": "Solve for 4, 5, and 6 on the comments. Cart Contents: Add", "question_title_for_js_snippet": "Solve for 4, 5, and 6 on the comments ", "question_description": "

Solve for 4, 5, and 6 on the comments. <\/p>

\/\/ get the cart out of the SESSION (if the cart is not in the SESSION, create it) if (isset($_SESSION['cart'])) { $cart = $_SESSION['cart']; } else { $cart = array(); } \/\/ add the new item to the cart $cart[] = $_REQUEST['item'];<\/p>

\/\/ put the cart back into the session (adding a new item may have resulted in a new object in memory) $_SESSION['cart'] = $cart; ?> <\/title> <\/head> <body> <?php \/\/ 5. display the user's name (saved in session previously) echo \"Hello, \"; ?><\/p> <p> Cart Contents: <hr\/> <?php echo \"<ul>\"; \/\/ 6. loop through the cart array and show each entry as a list item using the HTML li tag echo \"<\/ul>\"; ?><\/p> <p> Add to your cart:<br\/> <form action=\"cart.php\" method=\"POST\"> <select name=\"item\"> <option>Dog<\/option> <option>Cat<\/option> <option>Hamster<\/option> <!-- 7. create a database using the ddl provided --> <!-- 8. add all items from the database as additional drop down options --><\/p> <p> <\/select><\/p> <p> <input type=\"submit\" value=\"Add\" name=\"add\" \/> <\/form><\/p> <p> <\/body> <\/html><\/p>", "transcribed_text": "", "related_book": { "title": null, "isbn": null, "edition": null, "authors": null, "cover_image": null, "uri": null, "see_more_uri": "" }, "free_related_book": { "isbn": "", "uri": "", "name": "", "edition": "" }, "question_posted": "2024-09-02 12:23:23", "see_more_questions_link": "\/study-help\/questions\/computer-science-computer-network-2023-February-20", "step_by_step_answer": "The Answer is in the image, click to view ...", "students_also_viewed": [ { "url": "\/study-help\/introduction-to-probability-statistics\/972-put-on-the-brakes-the-braking-ability-was-compared-1986061", "description": "9.72 Put on the Brakes The braking ability was compared for two 2012 automobile models. Random samples of 64 automobiles were tested for each type. The recorded measurement was the distance (in...", "stars": 0 }, { "url": "\/parvis-bank-and-trust-co-has-calculated-its-daily-average", "description": "Parvis Bank and Trust Co. has calculated its daily average deposits and vault cash holdings for the most recent two-week computation period as follows: Net transaction deposits.......... = $...", "stars": 3 }, { "url": "\/study-help\/questions\/56a-recording-receivables-transactions-on-november-1-2024-recchi-10069931", "description": "5-6A - Recording receivables transactions On November 1, 2024, Recchi Company showed the following account balances: During the next fiscal year, the following events occurred: a.) Consulting...", "stars": 3 }, { "url": "\/study-help\/questions\/transcribed-image-text-4-the-following-income-statement-is-available-4952593", "description": "4. The following income statement is available in thousands): Sales 12,000 COGS 6,000 Depreciation 2,000 Tax 1,000 Net Income 3,000 In addition, you learn the company had $2.2 million capital...", "stars": 3 }, { "url": "\/study-help\/questions\/in-order-to-show-more-reported-gains-or-less-reported-1295917", "description": "In order to show more reported gains or less reported losses on the income statement, \"gains trading\" can be accomplished by selling securities classified as ____ with gains or by transferring...", "stars": 3 }, { "url": "\/study-help\/questions\/a-worker-in-charge-of-assembling-a-bicycle-finds-a-1296348", "description": "A worker in charge of assembling a bicycle finds a faster way to mount the pedals. He turns to his supervisor. The supervisor explains that the process had been optimized by the engineering...", "stars": 3 }, { "url": "\/study-help\/questions\/gamma-manufacturing-has-prepared-the-following-flexible-budget-for-october-1297339", "description": "Gamma Manufacturing has prepared the following flexible budget for October and it is in the process of interpreting the variances. F denotes a favorable variance and U denotes an unfavorable...", "stars": 3 }, { "url": "\/study-help\/questions\/what-is-the-role-of-the-customer-in-service-operations-1297639", "description": "What is the role of the customer in service operations? A.) They facilitate collaboration between suppliers B.) They are responsible for majority of fixed costs. C.) They are a supplier of process...", "stars": 3 }, { "url": "\/study-help\/questions\/a-contract-to-purchase-a-year-of-business-consulting-has-1297673", "description": "A contract to purchase a year of business consulting has a base price of $25,000 but also includes a bonus of $5,000 if the company's performance metrics improve by 10%. Due to the extensive amount...", "stars": 3 } ], "next_back_navigation": { "previous": "\/study-help\/questions\/using-the-appropriate-present-value-table-and-assuming-a-12-8936054", "next": "\/study-help\/questions\/tunneling-inc-fixed-costs-are-at-100000-the-company-has-8936056" }, "breadcrumbs": [ { "name": "Study help", "link": "https:\/\/www.solutioninn.com\/study-help\/questions-and-answers" }, { "name": "Computer Science", "link": "https:\/\/www.solutioninn.com\/study-help\/questions-and-answers\/computer-science" }, { "name": "Databases", "link": "https:\/\/www.solutioninn.com\/study-help\/questions\/computer-science-databases" }, { "name": "Solve for 4, 5, and 6 on the comments. Cart Contents: Add", "link": "https:\/\/www.solutioninn.com\/study-help\/questions\/solve-for-4-5-and-6-on-the-comments-8936055" } ], "skill_details": { "skill_id": "656", "skill_name": "Databases", "parent_id": "8" } }