Hi all, I am new to PHP and working on a project that involves fetching and formatting web pages from other sites. This is the page that I am retrieving:
http://cdec.water.ca.gov/cgi-progs/queryID?s=1130&end_date=28-Jun-2002+17:20
As you can see, this data changes by the current time.
So far I am able to display the entire page. But what I want to accomplish is to display the data starting \"OAKLAND NORTH (ONO)\" and ending with \"Warning! This has not been reviewed for accuracy.\" I don\'t want the image maps and the navigational bar at the buttom.
I tried quite a few approaches, but none worked. A few of them are:
$GrabStart = \"<h1>OAKLAND SOUTH <font color=red><em>(OSO)</em></font></h1>\";
$GrabEnd = \"Warning! This has not been reviewed for accuracy.\";
$GrabData = eregi(\"$GrabStart(.*)$GrabEnd\", $rf, $matches);
preg_match(\"/.<h1>OAKLAND\sNORTH<\/h1>(.\')Warning....\'./\", $rf,$match);
I would appreciate any help or suggestion you can offer. Thanks!!
Catherine