Hi mate,
Well,
You need to import the file into a variable and then parse that to the sql string.
I will assume that you have the file in the right format.
For testing - always do the trusty echo
echo "$query <br>";
so you can see what the php is trying to ask on the Mysql.
$filename="sSs.php";
$file = fread($fp,filesize($filename));
$query = "SELECT * FROM members where '$file'";
Remember to include the single apostrophe around the $file.
I grabbed this code ages ago from www.php.net when I needed to read in the contents of a file. It has served me well.
Cheers.
Andyman