怎样上传一个csv文件更新数据库?
<p>please select a scv file to upload</p>
<form action="index.php" method="post">
<input type="file" name="scv" />
<input type="submit" value="submit" />
</form>
<?php
mysql_connect('localhost','root','admin');
mysql_select_db('linjuming');
// how to upload a scv file and insert or update the "csv" table?
?>
------解决方案--------------------
去看看 phpexcel 这个插件
------解决方案--------------------
csv可以当txt读取,直接读取然后对应导入啊