473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Is it poosible to read data from a database and add to a document using PHP?

HI,

I need to connect to a database in MS Access and then extract the data that is there and insert it into a word file. is it possible to do this using PHP? Along with posting the data onto the document file i need to display it on the web page as well. Is this possible through PHP. I am quite new to the world of PHP. ihave read tutorials but havent managed to find anything that would help me. Please let me know if this can be done and if it can how. Direct me to appropriate sources.

Thanks
Mar 4 '08 #1
3 1185
ronverdonk
4,258 Expert 4TB
Yes, you can get table data from an Access table using PHP odbc or a package like ADODB. And it is also quite easy to display that data in the browser. Another thing is building a Word document or inserting that data in an existing Word document. That i not so easy.

Ronald
Mar 4 '08 #2
Hi Ronald,
Could you please direct me to some good tutorial in this context that is how to make a connection using ODBC and which has some sample code as well where some data is being picked from a database and displayed on a web page?

Thanks,


Yes, you can get table data from an Access table using PHP odbc or a package like ADODB. And it is also quite easy to display that data in the browser. Another thing is building a Word document or inserting that data in an existing Word document. That i not so easy.

Ronald
Mar 5 '08 #3
I think i had misunderstood the problem completely. Actualy the database consists of list of names of files that are related to a particular link.What i need to do is when that link is clicked go into the database and see which files should be available to the user and knowing that ,the files should be available on the next page. then i click on the file name and the file opens and i can view it.All files are word files.

Hi Ronald,
Could you please direct me to some good tutorial in this context that is how to make a connection using ODBC and which has some sample code as well where some data is being picked from a database and displayed on a web page?

Thanks,
Mar 5 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Raghu Gupta | last post by:
Hi, Actually i am facing some problem using quickbooks and presently i am not so expert in using it. I am using c# code to retrive the data from quickbooks. it doesn't matter which language we...
0
by: dphill | last post by:
Hello all I am a beginner .Net programmer so please forgive my ignorance. In brief, I am trying to read from xml file stored in a SQL database table’s field. This is what I used to create...
0
by: dphill | last post by:
Hello all I am a beginner .Net programmer so please forgive my ignorance. In brief, I am trying to read from xml file stored in a SQL database table’s field. This is what I used to create...
0
by: dphill | last post by:
Hello all I am a beginner .Net programmer so please forgive my ignorance. In brief, I am trying to read from xml file stored in a SQL database table’s field. This is what I used to create...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.