无法使用php在MongoDB中插入CSV数据

时间:2016-12-02 07:31:16

标签: php mongodb csv

问题:未插入成功的行。仅插入第一行(参见第一条评论)

读取CSV文件,然后使用PHP

将每行作为数据存储在MongoDB中
        <!DOCTYPE html>
    <html>
    <head>
    Test on local PC
    <br><br>
    </head>
    <body>

    1. Image from same directory in which this html code resides
    <br>
    Method: src="test.png"
    <br>
    <img id="myImg" src="test.png" width="50" height="50">
    <br>

    2. Image from directory on local PC
    <br>
    Method: src="C:/Users/MattheisenP/Desktop/test.png"
    <br>
    <img id="myImg" src="C:/Users/MattheisenP/Desktop/test.png" width="50" height="50">
    <br>

    3. Image from directory on Google Drive using the drive's key
    <br>
    Method: src="https://drive.google.com/drive/folders/0B9P-4EpF1HhMXzdoQ2tJSXotVmc/test.png"
    <br>
    Using this url... https://drive.google.com/drive/folders/0B9P-4EpF1HhMXzdoQ2tJSXotVmc  in the browser brings me to the folder
    <br>
    <img id="myImg" src="https://drive.google.com/drive/folders/0B9P-4EpF1HhMXzdoQ2tJSXotVmc/test.png" width="50" height="50">
    <br>


    4. Image from directory on Google Drive using the files key
    <br>
    Method: src= "https://drive.google.com/file/d/0B9P-4EpF1HhMb0trR1NXbVhXNTg"
    <br>
    Using this url... https://drive.google.com/file/d/0B9P-4EpF1HhMb0trR1NXbVhXNTg  in the browser displays the icon
    <br>
    <img id="myImg" src="https://drive.google.com/file/d/0B9P-4EpF1HhMb0trR1NXbVhXNTg" width="50" height="50">
    <br>
    </body>

0 个答案:

没有答案