Maison >développement back-end >tutoriel php >怎样下传一个csv文件更新数据库
怎样上传一个csv文件更新数据库?
怎样上传一个csv文件更新数据库?
<p>please select a scv file to upload</p><br /><form action="index.php" method="post"><br /> <input type="file" name="scv" /><br /> <input type="submit" value="submit" /><br /></form><br /><?php <br /> mysql_connect('localhost','root','admin');<br /> mysql_select_db('linjuming');<br /> // how to upload a scv file and insert or update the "csv" table?<br /> <br />?>