[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: ?php $recordset=mysql_query($query); $num_righe=mysql_num_rows($recordset); // here starts the dinamyc table echo TABLE align=\left\ border=\1\ cellspacing=\2\ cellpadding=\2\ width=\80%\\ntr; $record=

[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 format

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 in

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

2004-06-11 Thread Rui Cunha
hope this code will help you TABLE WIDTH=100% HEIGHT=100% ?php $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 =