Hi I am getting Undefined Offset for the below code.
<?php
function readCSV($fileName) {
$rows = array();
$rows = file($fileName);
$max = sizeof($rows);
for ($x=0; $x<=$max; $x++) {
echo "<li> <a href='#".$rows[$x]."'>$rows[$x]</a> </li>";
}
return $rows;
}
?>
<span><b>Available Positions: </b></span>
<ul>
<? (readCSV('joinUs.csv');?>
</ul>
Please let me know where I am making mistake in the above code.
Thanks