Please there're an esay way to Import date from excel file to database using php ?
I have made it by excel_reader2
but the last char don't load and I get problem with arabic language
This is my code
<?php
require_once 'excel_reader2.php';
$data = new Spreadsheet_Excel_Reader($url);
$page_sheet = 1;
if(count($data->sheets[$page_sheet][cells])>0) // checking sheet not empty
{
$rows = count($data->sheets[$page_sheet][cells]);
for($j=5;$j<=count($data->sheets[$page_sheet][cells]);$j++) // loop used to get each row of the sheet
{
$data->sheets[$page_sheet][cells][$j][1];
$rowid = $data->sheets[$page_sheet][cells][$j][1];
$phone = $data->sheets[$page_sheet][cells][$j][2];
$season = $data->sheets[$page_sheet][cells][$j][3];
$row = $data->sheets[$page_sheet][cells][$j][4];
$name = $data->sheets[$page_sheet][cells][$j][5];
echo "$name<br />";
}
}
Sorry for my bad english please
for($j=5;$j<=count($data->sheets[$page_sheet][cells])+1;$j++)$data = new Spreadsheet_Excel_Reader("test.xls",true,"UTF-16");"$variable =might be a problem$data->sheets[$page_sheet][cells][$j][1];at the top of your variables block - comment it out.$page_sheet = 0;? Also this was recommended on the other page an looks to have better language handling PHPExcel: phpexcel.codeplex.com also on github.com/PHPOffice/PHPExcel