-Original Message-
From: Phillip Perry [SMTP:[EMAIL PROTECTED]]
Sent: 13 June 2002 19:45
To: Tim Ward; Martin Towell; Tom Rogers; Php
Subject: RE: [PHP] beginner in PHP
Yes, here is the checkout code I used...
function chout(){
session_destroy();
unset
-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 4:18 AM
To: Martin Towell; Tom Rogers; Php; Phillip Perry
Subject: RE: [PHP] beginner in PHP
From the symptoms it sounds like you're destroying the session okay but
leaving the variables
In the script. Are you sure you're
Thank you but that didn't work. I still have to refresh the page.
-Original Message-
From: Stuart Dallas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:53 PM
To: Phillip Perry
Cc: Tim Ward; Martin Towell; Tom Rogers; Php
Subject: Re[2]: [PHP] beginner in PHP
On Thursday
Can someone tell me why this doesn't work?
The $mycart array is fine and the $catalog array is also fine but nothing
inside the if statement prints. I've tried other echo statements but nothing
prints at all.
while (list($key,$value) = each($mycart))
{
if ($value ==
] beginner in PHP
Is itemcd a variable then it should be used as $itemcd?
Try this:
echo $catalog[unitprice];
in my experience I've only been able to use the echo() without the
quotation marks if I'm calling a function, for variables you need the
quotation marks.
Hope this helps.
Phillip
() without the
quotation marks if I'm calling a function, for variables you need the
quotation marks.
Hope this helps.
Phillip Perry wrote:
Can someone tell me why this doesn't work?
The $mycart array is fine and the $catalog array is also fine but nothing
inside the if statement prints. I've
.
$catalog[itemcd]
$catalog[unitprice]
Tom
At 10:56 PM 12/06/2002 -0400, Phillip Perry wrote:
Can someone tell me why this doesn't work?
The $mycart array is fine and the $catalog array is also fine but nothing
inside the if statement prints. I've tried other echo statements but
nothing
prints at all
of putting these two line just before your while loop
print_r($mycart);
print_r($catalog);
-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:31 PM
To: Tom Rogers; Php
Subject: RE: [PHP] beginner in PHP
Thanks, but that didn't work either
($mycart)./pre;
Tom
At 11:31 PM 12/06/2002 -0400, Phillip Perry wrote:
Thanks, but that didn't work either
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:32 PM
To: [EMAIL PROTECTED]; Php
Subject: Re: [PHP] beginner in PHP
Hi
itemcd
I meant Martin :) sorry.
-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:44 PM
To: Tom Rogers; Php
Subject: RE: [PHP] beginner in PHP
Array ( [0] = gerainiums [1] = roses [2] = roses [3] = roses [4] =
roses [5] = roses )
1
1
Your
PM
To: '[EMAIL PROTECTED]'; Tom Rogers; Php
Subject: RE: [PHP] beginner in PHP
Ah! $catalog is a 2D array - any your if statement is expecting a 1D
array...
-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 1:52 PM
To: Tom Rogers; Php
Subject
()
function chout(){
global $mycart, $cart_items;
session_destroy();
-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:18 PM
To: Martin Towell; Tom Rogers; Php
Subject: RE: [PHP] beginner in PHP
Thanks Martin
12 matches
Mail list logo