
January 31st, 2013, 03:51 PM
|
 |
Likely to be eaten by a grue.
|
|
Join Date: Oct 2006
Location: Pennsylvania, USA
|
|
You need to learn some HTML before you try PHP. DIV and P tags cannot be placed inside a table, and a table requires a <table> tag.
PHP Code:
<html>
<head>
<title>A BASIC HTML FORM</title>
<body>
<table border=1>
<?PHP
$file_handle = fopen("csv/pins.csv", "r");
while (!feof($file_handle) ) {
$line_of_text = fgetcsv($file_handle, 1024);
echo '<tr><td>' . $line_of_text[0] . '</td><td>' . $line_of_text[1] . '</td><td>' . $line_of_text[2] . '</td><td>' . $line_of_text[3] . '</td><td>' . $line_of_text[4] . '</td></tr>';
}
fclose($file_handle);
?>
</table>
</body>
</html>
|