Skip to content

Commit 626ffb6

Browse files
Create import-sql.php
1 parent fa4f521 commit 626ffb6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

import-sql.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
$conn = mysqli_connect("localhost", "root", "test", "blog_samples");
3+
$query = "LOAD DATA INFILE 'input.csv' INTO TABLE tbl_student_master IGNORE 1 LINES";
4+
if (!mysqli_query($conn, $query)) {
5+
printf("Errormessage: %s\n", mysqli_error($conn));
6+
}
7+
?>

0 commit comments

Comments
 (0)