Hi, I'm looking for a way to read a list of ID's from a file and parse them into a request. Firstly, I need a function that will return a count of the lines in the file, and after that, how would I impliment the following example? I've tried fopen() / fread() and fopen() / fgets(), neither output anything. Please help, I'm going crazy here.
while (count > 0) {
$var = "line from file";
$query="SELECT * FROM table WHERE ID='$var';"
$result=mysql_query($query);
"Do outputing stuff here"
}