Re: printing an array
| From: | Jason Wong | Date: | Thu, 24 Oct 2002 12:07:47 +0000 |
| Subject: | Re: printing an array | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22656@lists.php.net to get a copy of this message | ||
On Thursday 24 October 2002 19:39, Chris Grigor wrote:
> If you look further down where I print
>
> print "<tr><td>$row->Routine_Tests_Count</td>";
>
> The value $row->Routine_Tests_Count is various numbers that need to printed
> in sepearte columns (Test 1 test 2 etc). So this
> means I have to put it into an array to print??
>
> Could anyone direct me on how to print it into an array????
For each iteration of your while-loop you need to:
1) Open a new table row:
echo "<tr>";
2) Create a column and print out the contents for each field in your $row:
echo "<td>$row->Routine_Tests_Count</td>";
echo ...
3) Close the table row:
echo "</tr>";
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
You have mail.
*/