[PHP-DB] Re: mysql results, arrays, and for loops

2004-06-13 Thread franciccio
Hi, here is my solution (one of the possible) it is tested so it should work fine: \n"; $record= mysql_fetch_array($recordset, MYSQL_ASSOC); foreach ($record as $k =>$val) { echo "$k\n"; // print the field name in the first row of the table for ($i=0;$i<$num_righe;$i++) { echo

[PHP-DB] Re: mysql results, arrays, and for loops

2004-06-11 Thread Rui Cunha
hope this code will help you $db = mysql_connect ('localhost') or die ($MYSQL_NO_CON); mysql_select_db ('database_name',$db) or die ($MYSQL_NO_BD); $query = "SELECT * FROM table" or die ($MYSQL_NO_QUERY); $result = mysql_query($query); if (mysql_num_rows

Re: [PHP-DB] Re: mysql results, arrays, and for loops

2004-06-11 Thread Philip Thompson
Yes, thanks to all that assisted. I got it working like a charm! ~Philip On Jun 11, 2004, at 9:30 AM, Torsten Roehr wrote: "Philip Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all! I am using a select statement to obtain all the dates whenever someone submitted a problem

[PHP-DB] Re: mysql results, arrays, and for loops

2004-06-11 Thread Torsten Roehr
"Philip Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all! > > I am using a select statement to obtain all the dates whenever someone > submitted a problem in a database. Well, I want to get the result > (which could be multiple dates) and then print that in a table for