Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~264 People Reached
Favorite Forums
Favorite Tags
php x 6
Member Avatar for elijahmangwe

Below is the the code where I am trying to to update my food items into the database but am failing to do it, any corrections will be helpful. Thanks in advance [code] <?php // set database server access variables: $host = "localhost"; $user = "root"; $pass = ""; $db …

Member Avatar for crunchie
0
84
Member Avatar for elijahmangwe

<?php function list_cart($cart) { if (isset($cart)) { print("<table border='1'><thead><th>Foodlist_ID</th><th>Description</th><th>Price</th> foreach ($cart as $idx=>$num) $item=get_stock_item($idx); extract($item); print("<tr><td>$indx</td><td>$title</td><td>$price</td><td>$num</td></tr>"); { print("</tbody></table>"); { else print("<p>The cart is currently empty</p>"); } function generate_order($cart) { if (isset($cart)) { print("<table border='1'><thead><th>foodlist_id</th><th>description</th><th>Price</th> $total=0; foreach ($cart as $idx=>$num) { //Obtain details of cart item $item=get_stock_item($idx); extract($item); //Check that enough …

Member Avatar for Will Gresham
0
76
Member Avatar for elijahmangwe

I am failing to connect to my database , also i cant update items into my database, below is the code i am using HELP

Member Avatar for elijahmangwe
0
53
Member Avatar for elijahmangwe

Specification: I wrote most of the code separately but seems am having difficulties linking it to my database: Write a simple E-commerce application, which may be a bookshop, music shop, clothes store, or anything else you wish. There should be a “user” interface to allow customers to select and purchase …

Member Avatar for ShawnCplus
0
51