Jump to content
Larry Ullman's Book Forums

Loading A Textfile Into A Mysql Table


Recommended Posts

The code below produces a syntax error, saying there is unexpected T-String in the line that starts with "Load Data......".

Can anyone tell me wyat I am doing wrong?

=========================================

<?php
require ('./mysqli_connect.php');
LOAD DATA LOCAL INFILE 'c:/Users/CourseOfStudy.txt'
    INTO TABLE CourseOfStudy
    FIELDS TERMINATED BY ','
    IGNORE 1 LINES;
?>

========================================

Thanks for any directions for a new user.

Wes Smith

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...