CODE HERE
<?php
$csv = array();
// LOAD CSV FILE HERE
$lines = file('files/Flyers.csv', FILE_IGNORE_NEW_LINES);
//$lines = array_filter($lines);
//$lines = array_unique($lines);
foreach($lines as $line)
{
$lines = explode(",",$line);
//echo '<pre>';print_r($lines);
// Columns AND ROWS HERE
$title = mysql_real_escape_string($lines[0]);
$isbn = mysql_real_escape_string($lines[1]);
$exp = $lines[2];
$price = $lines[3];
echo $title."<br>";
echo $isbn."<br>";
echo $exp."<br>";
echo $price.'<br>';
}
?>
<?php
$csv = array();
// LOAD CSV FILE HERE
$lines = file('files/Flyers.csv', FILE_IGNORE_NEW_LINES);
//$lines = array_filter($lines);
//$lines = array_unique($lines);
foreach($lines as $line)
{
$lines = explode(",",$line);
//echo '<pre>';print_r($lines);
// Columns AND ROWS HERE
$title = mysql_real_escape_string($lines[0]);
$isbn = mysql_real_escape_string($lines[1]);
$exp = $lines[2];
$price = $lines[3];
echo $title."<br>";
echo $isbn."<br>";
echo $exp."<br>";
echo $price.'<br>';
}
?>