954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Simple Shopping Cart with arrays

Order Page



  Product Name


  Quantity Ordered


  Product Price


  Total Cost

<?php
for($i=1; $i<=$Itempointer; $i++)
{
echo "
$basket_name[$i]


$basket_quantity[$i]


$basket_price[$i]


$basket_cost[$i]

";
}
?>


  Total Cost in Shopping Cart  


<?php echo $basket_tcost; ?>

nisrin
Newbie Poster
18 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

If you don't want to use PHP, perhaps you should not post this question in the PHP forum? Try the Javascript forum.

Troy
Posting Whiz
362 posts since Jun 2005
Reputation Points: 36
Solved Threads: 6
 

I am new to DaniWeb and i don't seem to find a way of posting my question so i have just taken advantage of a similar question. I need the code for creating a shopping cart and a log book in php but i need one which will work. I have developed a website for an IT firm where i work, and i need to add a shopping cart and a log book but i am stuck. How do i go about it together with mysql? Please help.

Achiever
Newbie Poster
1 post since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You