Women in Technology

Hear us Roar



Article:
  Building a Simple Search Engine with PHP
Subject:   IIS problems
Date:   2007-10-16 06:49:35
From:   snoski3
I guess this is supposed to work from what most posts have been saying. However, the populate and search php files don't work for me. The populate php doesn't give me an error yet there are no new entries in the database. The search page looks like this:


\n"; for( $i = 1; $row = mysql_fetch_array($result); $i++ ) { print "$i. ".$row['url']."\n"; print "(occurrences: ".$row['occurrences'].")


\n"; } /* Present how long it took the execute the query: */ print "query executed in ".(substr($end_time-$start_time,0,5))." seconds."; } else { /* If no keyword is defined, present the search page instead: */ print "
Keyword: \n"; print "Results: 5\n"; print "1015\n"; print "20\n"; print "
\n"; } print "\n"; /* Simple function for retrieving the current timestamp in microseconds: */ function getmicrotime() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } ?>


Thank you for your help.