Code: Select all
<?php
$searchParam = $_POST["searchParam"];
$file=fopen("calwid.txt", "r") or exit("Unable to open file!");
while (!feof($file))
{
$i = 0;
echo $tmpEvent = fgetcsv($file, 178);
if (in_array($searchParam, $tmpEvent))
{
echo $tmpEvent[$i];
$i++;
}
}
fclose($file);
?>
Help!
K