In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hi Rick,
> I tries your code but i'm constantly getting some
> errors. I modified the line to try and correct the
> error, and this is the code i'm using :
> $db = mysql_connect("localhost","mydb","pwd");
> $query = "LOAD DATA INFILE list.csv INTO list_try
> FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
> LINES TERMINATED BY '\n'";
> mysql_query($query) or die("error:". mysql_error());
> echo "Thank you! Your information has been
> And i'm still getting errors on the mail $query line.
> Can you say what is wrong?
> T. Edison Jr.
The error message might be useful, but in any case I think you need to
enclose the source filename in quotes; also (you better check the docs
here) if I remember correctly you need to give the full path to the
source file unless it is in the mysql data directory.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php