HW 1 Query 4 .
This page will implement the following websql query:
select x.url from document x such that "http://www.w3c.org" =>|-> x where x.text contains "XML";




Steps to implement this query:
** This query must be run after Query 1
1. get href from anchor table (check base = "http://www.umr.edu" entered in text box 1), retrieve each file, make sure it mentions "umr" by parsing
2. output href (as it is x.url)

Results:

====================================================================

"; $word_found = FALSE; //echo "$conurl || "; //echo "$conlength
"; $f = @fopen($conhref,"r"); if ($f) { while( $buf = fgets($f,1024) ) { $buf = fgets($f, 4096); if ( preg_match ("/$content/",$buf, $array) ) { $word_found = TRUE; } } fclose($f); } If ($word_found) { print "$conhref

"; } } odbc_close($conn); //close DB connection } ?>