[PHP] Trouble with arrays from within MySQL results where clause

2004-07-12 Thread Eric Boerner
Hello all, I am having trouble setting array data from within a MySQL results query. I have modified data from the result and wish to enter it into it's own array ($data). That then is used to generate a graph. The following code basically gives me an empty array... I am pulling out a timestamp

RE: [PHP] Trouble with arrays from within MySQL results where clause

2004-07-12 Thread Eric Boerner
Nevermind, I figured it out. Simple case of duh... $data[] = array('$time' = '$time','$aval' = 'aval'); Should have been: $data[] = array('$time' = $time ,'$aval' = aval); Thanks. :) -Original Message- From: Eric Boerner [mailto:[EMAIL PROTECTED] Sent: Monday, July 12

[PHP] nested statement problem

2004-06-11 Thread Eric Boerner
I am having a problem with a nested if statement in php. Everything works fine, but it doesn't display the information that I am trying to retrieve using a second if statement. CODE: if (($fr == 'FR') ($xe == 'XE') ($co == 'CO')) { print Statement; } elseif (($ag == 'AG') ($rz ==