How do I add an if statement to search another csv file? This php file PHP script searches CSV text file here is generating the form base on csv file. I want the user able to chose to search from two separate csv files on the same page
include('csvtoservice.php');
$content = csvtoservice(
'http://www.scgstudio.com/ucsc/web/Workbook3.csv',
array(
'filter' => array(fieldnames),
'rename' => array(
'name' => 'Name',
'donortype' => 'Donor Type',
'year' => 'Year',
'amount' => 'Amount'
),
'uppercase' => Boolean
)
);
if ($content) {
// show the form
echo '<h2>Honor Roll of 2010-11 Contributors</h2>';
if ($content['form']) {
echo $content['form'];
}
}