Hi,
I was working on a questionnaire. the answers to the questionnaire are stored in a csv file which acts as my database. Now i am trying to retrieve the data from the file into a table. However i want to start reading from the 2nd row of the file but am not being able to do so.
the code is like this:
[php]$rowcount = 0;
while(!feof($in))
{
$rowcount = $rowcount + 1;
$row = fgets($in);
if(strlen($row) == 0)
continue;
$rowarray = explode(",",$row);
print("<tr class=\"");
if($rowcount % 2)
print("oddRow");
else
print("evenRow");
print("\">");.
fclose($in)
}[/php]any help will be appreciated.
Thanks
Please enclose any code within the proper code tags. See the Posting Guidelines on how to do that. = moderator