• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Error while importing CSV file in database

mysqlcsvphpmyadmin


PHP Snippet 1:

LOAD DATA INFILE '/path/to/test.csv'
INTO TABLE tmp
FIELDS TERMINATED BY ';'
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS
(id,test);

Related Snippets

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

Form Validation and Submission to database

How to display MySQL table using php and edit it in a web browser

PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: no such host known

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

Undefined Array Key error when uploading image on php

How to loop sql table data inside a html table

carbon generated datetime not stored correctly into the database

How to get the ID of the link in another page in php

Fatal error: Array callback has to contain indices 0 and 1

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

Unable to Edit config.inc.php

HTML and PHP in one file

CSV to PHP class properties

About Contact Privacy policy Terms and conditions