[eluser]Unknown[/eluser]
I want to upload a xl file into mysql database.For this i want to use excee_reader libray . I have no idea how to use this libray . Please help me
I wrote the following controller , but am stuck here, am not getting o/p
<?php
Class Xlread extends Controller
{
function Xlread()
{
parent::Controller();
}
function index()
{
$this->load->library('excel_reader');
// Read the spreadsheet via a relative path to the document
// for example $this->excel_reader->read('./uploads/file.xls');
$this->excel_reader->read('http://localhost/pms/file/xl.xls');
// Get the contents of the first worksheet
$worksheet = $this->excel_reader->worksheets[0];
echo $worksheet;
}
}
?>