Umm...take another look at your HTML book. If you print $content after
</table>, then, yes, the content will appear under the table. If you
don't put it between <tr><td> and </td></tr> tags, then it'll appear
above the table (may depend on browser). 

---John Holmes...

> -----Original Message-----
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 11:35 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] =array within an html table=
> 
> 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=0
14
> 27
> 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>He
ig
> ht
> </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=0
14
> 27
> 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>He
ig
> ht
> </td><td>CFS</td><td>Temperature</td>");
> print($current);
> print("</table>");
> ?>
> .................................
> 
> Any help would be greatly appreciated.
> Tony Ritter
> 
> 
> 
> 
> 
> 
> --
> 
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to