RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Ralph Guzman
['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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Cesar Aracena
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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Ralph Guzman
- 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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Cesar Aracena
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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Chris W. Parker
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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Cesar Aracena
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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Cesar Aracena
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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-19 Thread Chris W. Parker
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

RE: [PHP] Delimiter WITHOUT lots of IF's :: SOLVED ::

2003-08-19 Thread Cesar Aracena
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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
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:

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
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:

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Cesar Aracena
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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Ralph Guzman
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

RE: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Cesar Aracena
- 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

Re: [PHP] Delimiter WITHOUT lots of IF's

2003-08-18 Thread Curt Zirzow
* 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 =