From 79f534ef5cde93ebbebd15f808bf845f7f40a13f Mon Sep 17 00:00:00 2001 From: Michael Mgbame <40023569+Micky26@users.noreply.github.com> Date: Mon, 20 Jul 2020 23:53:11 +0100 Subject: [PATCH] Update csv2sql.php --- csv2sql.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/csv2sql.php b/csv2sql.php index 2e68120..228aa78 100644 --- a/csv2sql.php +++ b/csv2sql.php @@ -86,13 +86,13 @@ //If each tuple in CSV are not seperated by new line. replace \n in the below query the delimiting character which seperates two tuples in csv // for more information about the query http://dev.mysql.com/doc/refman/5.1/en/load-data.html mysqli_query($cons, ' - LOAD DATA LOCAL INFILE "'.$file.'" - INTO TABLE '.$table.' + LOAD DATA LOCAL INFILE "HelpNow" + INTO TABLE 'HelpNow' FIELDS TERMINATED by \',\' LINES TERMINATED BY \'\n\' ')or die(mysql_error()); -$result2=mysqli_query($cons,"select count(*) count from $table"); +$result2=mysqli_query($cons,"select count(*) count from HelpNow"); $r2=mysqli_fetch_array($result2); $count2=(int)$r2['count'];