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['tota

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

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

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

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 SUM(sess_it

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

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

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

2003-08-19 Thread Cesar Aracena
array( >'quantity' => $x, >'total_size' => $n >); > >return $cart_cdqty; > } > > } > > > -----Original Message----- > From: Ralph Guzman [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 11:

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

2003-08-19 Thread Ralph Guzman
); return $cart_cdqty; } } -Original Message- 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

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

2003-08-18 Thread Cesar Aracena
>print 'Total CDs:' . $cdqty['total_size'] . 'MBs '; > } > > I have not tested this but it should work. > > Ralph > > -Original Message- > From: Cesar Aracena [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 8:5

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

2003-08-18 Thread Ralph Guzman
ing cart'; } else { print 'Total Size:' . $cdqty['quantity'] . ''; print 'Total CDs:' . $cdqty['total_size'] . 'MBs '; } I have not tested this but it should work. Ralph -----Original Message- From: Cesar Aracena [mailto:[EMAIL

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

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

2003-08-18 Thread Cesar Aracena
t; statements, can you show me the code for this function so that I can get > a better idea of what you are currently doing? > > > -Original Message- > From: Cesar Aracena [mailto:[EMAIL PROTECTED] > Sent: Monday, August 18, 2003 8:38 PM > To: 'Ralph Guzman'; [EMA

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

2003-08-18 Thread Ralph Guzman
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 browser when he opens the site with a random generated number which expir

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
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: Confidential

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: Confidential