0

i use file_get_contents to get the queries from the file but now how can i load all of them into a mariadb database by using PDO? With mysqli i know there is a function called mysqli_multi_query is there another function that does the same but with PDO?

Andrea
  • 134
  • 2
  • 12

1 Answers1

0

Do not use multi-query.

Is this a CSV file? If so, you should not need file_get_contents; instead use LOAD DATA INFILE ...

Rick James
  • 135,179
  • 13
  • 127
  • 222