mysql_connect("localhost","root","");
mysql_select_db("hitnrunf_db");
$result=mysql_query("select * from jos_users INTO OUTFILE users.csv FIELDS ESCAPED BY "" TERMINATED BY , ENCLOSED BY "
LINES TERMINATED BY
");
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=your_desired_name.xls");
header("Content-Transfer-Encoding: binary");
header("Pragma: no-cache");
header("Expires: 0");
print "$header
$data";
上文提到的在座标注中,即在我sql_quey边铺设
我们正在经历错误
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:wampwwwsamplesmysql_excelexel_outfile.php on line 8
in query string charter is not identifying as string thats why above error getting