Ask a Question related to PHP Development, Design and Development.
-
NotGiven #1
need help writing database entires to file
I have used dreamweaver to do a lot of php "programming" but now I need to
write a real php function.
I have a hosted mysql database that I need to export to MS Access. I can't
use myODBC to do it because hosting company denies access to db port. I
looked at other ways to dump the data but the escaped characters always
threw the import off. There probably a way to do using MySQLDUMP command.
HOwever, I remember a long time ago I wrote some code to read raw data into
lotus notes and figured there is probably a way to write out the data using
whatever field & record terminators I choose.
Keeping in mind the end goal is to write on e that is friendly to import
into MS Access, does anyone have an idea of how to use PHP to write a mysql
db out to a *.txt file formatted for easy import to MS Access?
If not, does anyone know how to write a mysql db out to a file?
Many thanks!
NotGiven Guest
-
Writing to a Database using Flash
Hi, I am creating e-learning material that will be accessed online by students. Is there anyway that Flash can write to a database to tell us how... -
Writing to Oracle Database using Flex
Hello gurus, I have created a Flex form application in Flex 1.5 This form application has several text input controls. The logic is, whatever... -
Writing into the database on the internet
Hi! I have an application that runs on the internet that works with asp and access. When I request info from the database, it works fine, but when I... -
BLOB from database to Browser with out writing it out to a file.
I would like to be able to extract a BLOB from the database (Informix) and pass it to a browser without writing it to a file. (The BLOB's are word... -
one to many relation writing to Access database
In article <EYcMa.517516$122.49025169@amsnews02.chello.com>, marco@alting-multimedia.nl says... It sounds like what you want is really a many to... -
Phlarmf #2
Re: need help writing database entires to file
"NotGiven" <noname@nonegiven.net> wrote in message
news:vI%jb.11129$h47.6101@bignews4.bellsouth.net.. .can't> I have used dreamweaver to do a lot of php "programming" but now I need to
> write a real php function.
>
> I have a hosted mysql database that I need to export to MS Access. Iinto> use myODBC to do it because hosting company denies access to db port. I
> looked at other ways to dump the data but the escaped characters always
> threw the import off. There probably a way to do using MySQLDUMP command.
> HOwever, I remember a long time ago I wrote some code to read raw datausing> lotus notes and figured there is probably a way to write out the datamysql> whatever field & record terminators I choose.
>
> Keeping in mind the end goal is to write on e that is friendly to import
> into MS Access, does anyone have an idea of how to use PHP to write a> db out to a *.txt file formatted for easy import to MS Access?
>
> If not, does anyone know how to write a mysql db out to a file?
>
> Many thanks!
>
You can create custom deliniated text files with mysql with
SELECT INTO OUTFILE '/path/to/file/to/create.txt'
FIELDS
TERMINATED BY '\t'
ENCLOSED BY ''
ESCAPED by '\\'
LINES
STARTING BY ''
TERMINATED BY '\n'
FROM ....(where, group by, having, etc)
The values given are the defaults if you don't specify them. Make sure MySQL
has write permissions on '/path/to/file/to/'.
Phlarmf Guest
-
NotGiven #3
Re: need help writing database entires to file
Many thanks. I'll give it a try!
"Phlarmf" <no@email.com> wrote in message
news:p4ekb.122291$pl3.46313@pd7tw3no...to>
> "NotGiven" <noname@nonegiven.net> wrote in message
> news:vI%jb.11129$h47.6101@bignews4.bellsouth.net.. .> > I have used dreamweaver to do a lot of php "programming" but now I needcommand.> can't> > write a real php function.
> >
> > I have a hosted mysql database that I need to export to MS Access. I> > use myODBC to do it because hosting company denies access to db port. I
> > looked at other ways to dump the data but the escaped characters always
> > threw the import off. There probably a way to do using MySQLDUMPMySQL> into> > HOwever, I remember a long time ago I wrote some code to read raw data> using> > lotus notes and figured there is probably a way to write out the data> mysql> > whatever field & record terminators I choose.
> >
> > Keeping in mind the end goal is to write on e that is friendly to import
> > into MS Access, does anyone have an idea of how to use PHP to write a>> > db out to a *.txt file formatted for easy import to MS Access?
> >
> > If not, does anyone know how to write a mysql db out to a file?
> >
> > Many thanks!
> >
>
> You can create custom deliniated text files with mysql with
>
>
> SELECT INTO OUTFILE '/path/to/file/to/create.txt'
> FIELDS
> TERMINATED BY '\t'
> ENCLOSED BY ''
> ESCAPED by '\\'
> LINES
> STARTING BY ''
> TERMINATED BY '\n'
> FROM ....(where, group by, having, etc)
>
>
> The values given are the defaults if you don't specify them. Make sure> has write permissions on '/path/to/file/to/'.
>
>
NotGiven Guest



Reply With Quote

