Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2006, 12:53 PM
Authorized User
 
Join Date: Jun 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default php compare 2 arrays

trying to compare 2 arrays and based on that increment the qty in the shopping cart or add a new product.


the first one is sc_pid which is equal to the productid querystring
the second one is sc_pdid = to productdetailsid if the product has attributes as color, size, etc.
It adds to the cart (based on session array), but i can not get it to incremetn the qty once is already in the cart.


::::::::::::::::::::::::::::::::::

done it.

Thanks everyone who tried.





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP array_push() for associative arrays mcmahonc Beginning PHP 1 January 9th, 2010 01:13 PM
HOW TO USE STRINGS,ARRAYS AND VARIABLES IN PHP jhan316 Beginning PHP 1 July 25th, 2006 07:17 PM
compare these date fields and compare and get the susanring Oracle 1 July 24th, 2006 04:58 PM
Mysql,PHP and arrays swedge MySQL 1 February 15th, 2006 07:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.