mysql and php HELP!

wxdqz

New Member
i've been trying to do a file search but for some reason nothing goes into my $list variable the code is below could anyone see if i'm missiing something..thanks :)

<?php
$query = "SELECT FAQKeyword from tblFAQKeywords";

$FullQuery = mysql_query($query);

$keywordArray = mysql_fetch_array($FullQuery);

$URL= "http://stockgift.securenow.com" .$URL;

$file = fopen($URL, "r+");

$count = count($keywordArray);

$list = "";

for($i=0; $i < $count; $i++){

while (!feof($file)) {
$line = fgetss($file, 1024);
if(eregi($keywordArray[$i], $line)){
$list .= $keywordArray[$i];

}

}
}

$URL2 = "faqSearch.php3?FAQKeyword=$list";

include "$URL2";

?>
 
Back
Top