Re: [PHP-DB] Array problems

2003-01-22 Thread Paul Burney
on 1/22/03 12:08 AM, Michael Conway at [EMAIL PROTECTED] appended the following bits to my mbox: > I find myself stuck in coming up with a way to cycle through this > array of db results for porting to a graphing script that I did not > write. My latest attempt to get around this problem is below

[PHP-DB] Array problems

2003-01-21 Thread Michael Conway
I find myself stuck in coming up with a way to cycle through this array of db results for porting to a graphing script that I did not write. My latest attempt to get around this problem is below. Outside of the $graph->SetDataValues(array( ));, echoing $array[$i] produces the desired result

Re: [PHP-DB] array-problems

2001-10-24 Thread Jim Lucas
- Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Bart Verbeek" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 12:42 PM Subject: Re: [PHP-DB] array-problems > Try this: > > <<< BEGIN:PHP-C

Re: [PHP-DB] array-problems

2001-10-24 Thread Bruno Gimenes Pereti
It looks like you need only one array, $date[begin] = $date[end]. Let's see, I think it'll work. I'll write it in your code then you try: $i=0; $result = mysql_query ("SELECT DISTINCT date FROM linktracker WHERE name LIKE '$PHP_AUTH_USER' ORDER BY date"); if ($row = mysql_fetch_array($result)) {

[PHP-DB] array-problems

2001-10-24 Thread Bart Verbeek
Hello, Can anyone help me with this script I'm using? I've saved dates in a database and want to make two select-lists of these dates in a html-form. I want to select each unique date one time (no doubles). List 1 is used to set the begin-date of the query for the report, List 2 will set the end-