PHP bulk insert foreach

前端 未结 4 1211
一整个雨季
一整个雨季 2021-01-03 05:54

I have a curl script which reads the data from a remote source. Below is the current code:

function download_page($path){
    $ch = curl_init();
    curl_set         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 06:29

    to bulk insert operation you can append you script in a variable and you can run this as whole but for this you have to use mysqli_multi_query. Check this link http://www.php.net/manual/en/mysqli.multi-query.php

提交回复
热议问题