Re: =array within an html table=
| From: | @ Edwin | Date: | Wed, 09 Oct 2002 02:40:46 +0000 |
| Subject: | Re: =array within an html table= | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119369@lists.php.net to get a copy of this message | ||
I think this is more of an HTML problem than a PHP...
Put it inside <td>$here</td> (or <tr><td>$here</td></tr>
whichever you need)
and I'm sure the problem will go away.
- E
"Anthony Ritter" <tony@gonefishingguideservice.com> wrote in message
news:20021009023025.23877.qmail@pb1.pair.com...
> I'd like to have the record data - $current - *within* the html table but
if
> I run this script it is on a line outside of the table:
> ....................................
> <?
> $content =
>
file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
> 510");
> array_pop($content);
> $current = array_pop($content);
> print("<table border=1>");
>
print("<tr><td>USGS</td><td>Station</td><td>Date</td><td>Time</td><td>Height
> </td><td>CFS</td><td>Temperature</td>");
> print("</table>");
> print($current);
> ?>
> ...............................
>
> ...and if I run this script, the record - $current - is outside above the
> table - not within it.
>
> <?
> $content =
>
file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
> 510");
> array_pop($content);
> $current = array_pop($content);
> print("<table border=1>");
>
print("<tr><td>USGS</td><td>Station</td><td>Date</td><td>Time</td><td>Height
> </td><td>CFS</td><td>Temperature</td>");
> print($current);
> print("</table>");
> ?>
> .................................
>
> Any help would be greatly appreciated.
> Tony Ritter
>
>
>
>
>
>
> --
>
>
>
>