What keywords are being used? IF they aren't found, then nothing is being
printed out. YOu need to add the else clause to this:

if ( eregi (..... ) ) {
}
else {  ## add this to catch if keywords not found for debugging purposes at
least so you see what is not found

 echo "The keywords $keywords were not found in the resume $filename <br>";
}


This is so you can at least see nothing is being found.

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

"Todd Williamsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> here is the code:
> returns nothing, not even an error...  the process is fast too, so I know
it
> isn't doing anything...
>
> GRR!
>
> <?
> $connection = @mysql_connect($databaseserver, $databaseuser,
$databasepass)
> or die ("could not connect to database");
> $db = @mysql_select_db($databasename, $connection) or die("Could not
select
> database");
> $sql = "SELECT id, FirstName, LastName, ResumeUp FROM $canidatetable ";
> $result = mysql_query($sql, $connection) or die("Couldn't execute query");
> if ($result)
> {
> if (($numrows = mysql_num_rows($result)) > 0)
> {
> while ($row = mysql_fetch_array($result))
> {
> $id = $row['id'];
> $FirstName = $row['FirstName'];
> $LastName = $row['LastName'];
> $filename = $row['ResumeUp'];
> $fd =
> fopen("/home/sites/madden.williamsen.net/web/recruiter/resumes/$filename",
> "r");
> $contents = fread($fd, filesize($filename));
> fclose($fd);
> $keyword = "$words";
> if(eregi($keyword, $contents))
> echo "The Words <b>$keywords</b> has been found in the resume of
> <ol><li>$LastName, $FirstName <a
>
href=\"http://madden.williamsen.net/recruiter/resumes/basename($filename)\">
> Resume</a></li></ol>";
> }
> }
> else {
> echo "Therer are no resumes posted yet";
> }
> }
> else {
> echo "Error Performing Query";
> }
> ?>
>
>
>



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

Reply via email to