Okay - it just goes from weird to weirder. When I added the command to the top of the script and ran it through my iMac (where the code - apparently- is working) - I received these errors:
Notice: Undefined index: action in /Library/WebServer/Documents/mysite/cart.php on line 133
Notice: Undefined variable: rs_cart in /Library/WebServer/Documents/mysite/cart.php on line 155
But when I ran it through the server - I didn't receive any errors (but also didn't receive the results of the query. I also checked to make
sure that there was data in the database and, sure enough, there was.
Here's another little discovery - I cleared out my cache and then also cleared all my cookies (with the thought that I would create new cookie and track the behaviour). Oh, I also cleared out the cart table in the database. Start from scratch.
When I did so, I still don't get an error message, but I also only get one line item in the cart. I thought that odd, so I checked the cart table and found that a NEW cookie is being created each time I add an item (this didn't happen before I cleared the cache etc...). I tried the same thing on my iMac and it also happened. I also, in the meantime, reset my php.ini file so that the following settings were changed:
magic_quotes_gpc from ON to OFF
register_argc_argv from OFF to ON
register_globals from OFF to ON
Here is the error codes I get when I try to run the page on my iMac:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /Library/WebServer/Documents/mysite/cart.php:7) in /Library/WebServer/Documents/mysite/include.php on line 6
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /Library/WebServer/Documents/mysite/cart.php:7) in /Library/WebServer/Documents/mysite/include.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/mysite/cart.php:7) in /Library/WebServer/Documents/mysite/include.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/mysite/cart.php:7) in /Library/WebServer/Documents/mysite/include.php on line 6
All of the code has been listed above in this thread. I'm baffled and perplexed!!!