I'm trying to take a certain string from a USGS site that gives real time water levels and water heights for a certain location and insert it into a table using php.
I'd like to open and read some of the lines in the USGS table - but not all. The output from the script - which doesn't have the fopen() and fread() commands below - gives me the string and then the table headers. I'd like to transpose it so that the table headers appear first and then the data from the USGS file is inserted within the columns below. Thank you. Tony Ritter .................................................................... <? echo "<TABLE BORDER=1>"; echo "<TR><TH>USGS Station</TH><TH>Location</TH><TH>Date</TH><TH>Time</TH><TH>Level</TH>"; $words1="01427510 DELAWARE RIVER AT CALLICOON NY 09/11 13:15 2.88"; $regexp="0.[A-Z,a-z,0-9].................................................... ....."; if (ereg($regexp,$words1,$reg)) echo "$reg[0]"; echo "</TABLE>"; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php