Ask a Question related to PHP Development, Design and Development.
-
Lee Kim Hock #1
upload text file into MySQL database
Hi, I am really new with PHP and MySQL. My problem is when I run the
following script in the PHP program, nothing is uploaded even though I have
45K records in the filename.txt.
load data file 'filename.txt' into table tablename fields terminated by ','
enclosed by '"' lines terminated by '\n';
When I use the Mysql prompts, it works, when I transfer the script to PHP
program, it does not work. Anything wrong with the script? Or am I missing
some PHP command?
Thanks very much
Mr. Lee Kim Hock
Lee Kim Hock Guest
-
I need PHP and MySQl base file or image upload Extension
I am using php and MySQL in my web site my site is www.cyberbogra.com Now i am suffering for php and MySQL base image or file upload extion. Please... -
Upload an Image to the mysql database
Hi! I need help on how to upload an image to mysql database directly. I needed the images to be saved directly to the mysql database. Is there a... -
Upload File to Access Database
I have a Dreamweaver Page which is attached to a MS Access Database in Cold Fusion. In the page is a browse button which opens the select file... -
upload a jpg file to an access database...???
I think I heard that you can't have a jpg in an access database, however you could point to where the jpg was from within the database. What I need... -
upload a file to a database in my sql
I have a B.D made in access and of which also I have respective tables of the B.D. in xls. However what I want is: To come back to make the... -
Colin McKinnon #2
Re: upload text file into MySQL database
Lee Kim Hock wrote:
Using same database server/authentication details?> Hi, I am really new with PHP and MySQL. My problem is when I run the
> following script in the PHP program, nothing is uploaded even though I
> have 45K records in the filename.txt.
>
> load data file 'filename.txt' into table tablename fields terminated by
> ',' enclosed by '"' lines terminated by '\n';
>
> When I use the Mysql prompts, it works, when I transfer the script to PHP
> program, it does not work. Anything wrong with the script? Or am I missing
> some PHP command?
>
Got a connection to the database you can run a 'SELECT....' from?
escaping quotes?
HTH
C.
Colin McKinnon Guest



Reply With Quote

