['total_size'] . 'MBs BR';
}
I have not tested this but it should work.
Ralph
-Original Message-
From: Cesar Aracena [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 8:54 PM
To: 'Ralph Guzman'; [EMAIL PROTECTED]
Subject: RE: [PHP] Delimiter WITHOUT lots of IF's
Importance: High
Sensitivity
doing?
-Original Message-
From: Cesar Aracena [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 8:38 PM
To: 'Ralph Guzman'; [EMAIL PROTECTED]
Subject: RE: [PHP] Delimiter WITHOUT lots of IF's
Importance: High
Sensitivity: Confidential
Using a cookie (I know, I know
-
From: Ralph Guzman [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 11:41 PM
To: 'Cesar Aracena'; [EMAIL PROTECTED]
Subject: RE: [PHP] Delimiter WITHOUT lots of IF's
Sensitivity: Confidential
I agree with Curt, use mySQL to get the sum of 'sess_itemsize' then
divide the result by size
Guzman [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 11:41 PM
To: 'Cesar Aracena'; [EMAIL PROTECTED]
Subject: RE: [PHP] Delimiter WITHOUT lots of IF's
Sensitivity: Confidential
I agree with Curt, use mySQL to get the sum of 'sess_itemsize' then
divide the result by size per disk
Cesar Aracena mailto:[EMAIL PROTECTED]
on Tuesday, August 19, 2003 10:18 AM said:
Sensitivity: Confidential
Oh really?
and not the CD quantity according to file size... Why is the array
there and what it is supposed to be called with to give one or
another result?
Pay close attention
Ok, That's logical, but the thing is that even $x and $n are empty, as
if the result would give a hole bunch of zeros (but it isn't).
Could there be an error in the query or somewhere around that we are all
missing?
Thanks,
Cesar
function cart_cdqty()
{
$query = SELECT
So it's not returning any results?
What happens when you do the following...
} else {
$n = $row['total_size'];
echo :$n:;
Put that echo statement in your code and see what happens.
If you've already done this and it prints :: (as opposed to :0: which
Cesar Aracena mailto:[EMAIL PROTECTED]
on Tuesday, August 19, 2003 11:38 AM said:
Importance: High
Sensitivity: Confidential
Is this being done by your server or by you?
It does print 0 so I guess something must be wrong somewhere else. My
guess is that $row['total_size'] is not
Importance: High
Sensitivity: Confidential
Is this being done by your server or by you?
By me, because of my Company's policies and requirements. Sorry if it
bothers anyone :)
It does print 0 so I guess something must be wrong somewhere else.
My
guess is that $row['total_size'] is
How are you keeping track of items added being added to the shopping
cart?
-Original Message-
From: Cesar Aracena [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 7:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Delimiter WITHOUT lots of IF's
Importance: High
Sensitivity:
How are you keeping track of items added being added to the shopping
cart?
-Original Message-
From: Cesar Aracena [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 7:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Delimiter WITHOUT lots of IF's
Importance: High
Sensitivity:
Using a cookie (I know, I know...) I plant a cookie in the visitor's
browser when he opens the site with a random generated number which
expires when the browser(s) is closed. With that SID, PHP stores the
orders (one per line) into a sessions table in MySQL each with the
itemID. Is it fine or am
To: 'Ralph Guzman'; [EMAIL PROTECTED]
Subject: RE: [PHP] Delimiter WITHOUT lots of IF's
Importance: High
Sensitivity: Confidential
Using a cookie (I know, I know...) I plant a cookie in the visitor's
browser when he opens the site with a random generated number which
expires when the browser(s
-
From: Cesar Aracena [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 8:38 PM
To: 'Ralph Guzman'; [EMAIL PROTECTED]
Subject: RE: [PHP] Delimiter WITHOUT lots of IF's
Importance: High
Sensitivity: Confidential
Using a cookie (I know, I know...) I plant a cookie in the visitor's
* Thus wrote Cesar Aracena ([EMAIL PROTECTED]):
Ok. Here you have the entire function to see how many CD's the order
will contain:
function cart_cdqty()
{
$query = SELECT * FROM sessions WHERE sess_sid =
.$_COOKIE['SID'].;
$result = mysql_query($query);
$num_rows =
15 matches
Mail list logo