这个MySQL查询出了什么问题?
$query = "LOAD DATA LOCAL INFILE 'C:\\wamp\www\port\gurantee\upload\".$_FILES['userfile']['name']."' INTO TABLE dramexchange.gurantee FIELDS TERMINATED BY ',' ENCLOSED BY '' LINES TERMINATED BY '\r\n'";
并提供此错误:
解析错误:解析错误,期望第13行的C:wampwwwportguranteerec.php中的T_STRING'或T_VARIABLE'或'T_NUM_STRING'
TnXx
答案 0 :(得分:4)
反斜杠转义字符......
答案 1 :(得分:2)
也许这会有所帮助:
'C:\\wamp\\www\\port\\gurantee\\upload\\'