| | |
convert database into XML
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2009
Posts: 98
Reputation:
Solved Threads: 2
i was wondering how i can convert my fetch data from database into XML..!!
actually i want to use idea on pagination..!!
when first time user search for data...!! a XML file will creating containing data from database..!! and further data will be listed from XML instead of database..!!!
can anyone help..?
actually i want to use idea on pagination..!!
when first time user search for data...!! a XML file will creating containing data from database..!! and further data will be listed from XML instead of database..!!!
can anyone help..?
•
•
Join Date: Jun 2009
Posts: 98
Reputation:
Solved Threads: 2
thanks for response..!!
i just want to listing the data on a webpage..!!
i have a db field country_name and country_id..!! there are 150 records in a table..!!
So i try to use pagination at front end..!!! but every time i click on paging number... it fetch data from database..!! so instead of contacting database everytime.. i thought why not to load data into temporay XML file on page load and than fetch data from XML file instead of database..!! i think will make application more fast.!!!
what u say.??
i just want to listing the data on a webpage..!!
i have a db field country_name and country_id..!! there are 150 records in a table..!!
So i try to use pagination at front end..!!! but every time i click on paging number... it fetch data from database..!! so instead of contacting database everytime.. i thought why not to load data into temporay XML file on page load and than fetch data from XML file instead of database..!! i think will make application more fast.!!!
what u say.??
Last edited by sam023; Sep 15th, 2009 at 9:16 am.
I wouldn't do that. It would be slower than fetching a few records from a database.
Google is your friend.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
Use [code] tags.
If you have found a solution to your problem, please mark the thread as SOLVED.
For small amounts of data, perhaps there would be negligible differences in speed, but as your data grows, a db would certainly be quicker - especially if correctly indexed.
The xml file, when opened will need to be read. The bigger the file, the more 'read time', regardless of how much of the actual info you want to extract.
I understand your point about making small temporary xml files, but I don't think it's worth all that extra hassle. Your db, if properly structured/indexed show be lightning fast.
The xml file, when opened will need to be read. The bigger the file, the more 'read time', regardless of how much of the actual info you want to extract.
I understand your point about making small temporary xml files, but I don't think it's worth all that extra hassle. Your db, if properly structured/indexed show be lightning fast.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
![]() |
Similar Threads
- ASP.NET - session objects Problem (ASP.NET)
- What is Data Base Synchronization..? (XML, XSLT and XPATH)
- how to convert xml format into sql database format? (XML, XSLT and XPATH)
- Convert database values into Dropdown List (PHP)
- converting exe into xml (XML, XSLT and XPATH)
- HELP!How to convert Tamino XML DB Server to Oracle XML DB Server and/or Ora ... (Oracle)
Other Threads in the PHP Forum
- Previous Thread: how can i make php alert pop ups just like in javascript.
- Next Thread: updating multiple rows with one form
| Thread Tools | Search this Thread |
apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code cron curl database dataentry date display duplicates dynamic ebooks echo email emptydisplayvalue error execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google href htaccess html image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching mediawiki menu mlm multiple mysql number oop paypal pdf php phpincludeissue problem query radio random recursion recursive remote script search server sessions shot sms source sp space speed sql subdomain subscription syntax system table tag tutorial tutorials update upload url validator variable vbulletin video web white youtube






