Current location: Hot Scripts Forums » General Community » Script Requests » Write Mysql data to xml via php


Write Mysql data to xml via php

Reply
  #1 (permalink)  
Old 03-04-09, 09:51 PM
ragrim ragrim is offline
New Member
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Write Mysql data to xml via php

Hi,

for the last few hours ive been trying to make a php script that will grab some data from my mysql database and save it to a xml file, now that much i can do based on some info i have found on various sites, but saving it in the format i need is the problem.

so what i have is 2 fields in my table, time and cpu

the format i need them to save in is

<graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showNames='1' decimalPrecision='0' formatNumberScale='0'>
<set name='timevalue' value='cpuvalue' color='AFD8F8' />
</graph>

if anyone could help me with a script that can do this id be very appreciative. thanks.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML PHP MYSQL- Writing to a xml file punky79 PHP 8 05-18-09 04:21 AM
Need Php Script To Export Mysql Data RAJPHP PHP 1 03-09-06 05:09 AM
Php Mysql Bug??? tranquilraven PHP 4 03-01-06 03:06 AM
Need help with some php mysql TheTinkeringToad PHP 9 02-01-06 10:56 AM
Error when trying to select data off MySQL in PHP HasansWeb PHP 7 01-07-04 02:06 PM


All times are GMT -5. The time now is 09:23 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.