HOME > PHP > PHP Forum > Import data text file แล้ว Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\Pos_soft\product\Uploadproduct.php on line 45
Import data text file แล้ว Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\Pos_soft\product\Uploadproduct.php on line 45
<?php
header("Content-type: text/html; charset=utf-8");
ob_start();
session_start();
$_SESSION['ses_username'] = $username;
$_SESSION[ses_userid] = session_id();
$_SESSION['user']=$_GET[user];
$user_id=$_SESSION['user'];
/*include "Conn/config.php";
include "func/func.php";
*/
include "../func/func.php";
include "../Conn/config.php";
include "../Conn/constants.php";
$file_upload=$_FILES["uploadfile"]["name"];
$file_tmp_name= $_FILES["uploadfile"]["tmp_name"];
$sql=mysql_query("
LOAD DATA LOCAL INFILE '".$file_upload."'
INTO TABLE tmp_import
FIELDS TERMINATED BY ',';");
$query = mysql_query($sql) or die mysql_error();
?>