I'm sorry for my ignorance, but I'm fairly new to PHP, so let me explain what I'm trying to do.
I'm using a CSV file as my data source, which isn't a problem, I can read/write fine.
I'm using this code to create a table from the CSV file:
<?php
$filename = "feedback.csv";
$id = fopen($filename, "r");
while ($data = fgetcsv($id, filesize($filename),";"))
$table[] = $data;
fclose($id);
echo "<table width=\"100%\" border=\"5\">\n";
foreach($table as $row)
{
echo "<tr>";
foreach($row as $data)
echo "<td>$data</td>";
echo "</tr>\n";
}
echo "</table>\n";
?>
The first field in the CSV file is a unique ID number. What I want to do is make that column in the table links.
For example, lets say an ID number is 12345. I would want that ID to link to something like contactdetail.php?ID=12345.
How would I do that? Also, for the contactdetail.php page, how would I retrieve that ID number and pull that one row of data from the CSV file into editable text boxes?
I know how to do this in ASP.NET, but this requires PHP since its on a Linux server.
Thanks for any help you can provide.