· 7 years ago · Apr 09, 2018, 06:14 AM
1function loadData($conn){
2
3
4 $result = mysql_query("SELECT * FROM `configuration`", $conn)or die(mysql_error());
5
6 $row = mysql_fetch_row($result);
7
8 $accessId= $row[0];
9 $secretKey = $row[1];
10 $associateId = $row[2];
11 $nodeId = $row[3];
12 $bannerCodes = $row[4];
13 $fullclickCodes = $row[5];
14
15 header('Content-Type: text/xml');
16 echo '<?xml version="1.0" encoding="utf-8"?>';
17 echo '<configuration>';
18 echo '<accessId>'.$accessId.'</accessId>';
19 echo '<secretKey>'. $secretKey .'</secretKey>';
20 echo '<associateId>'. $associateId .'</associateId>';
21 echo '<nodeId>'. $nodeId .'</nodeId>';
22 echo '<bannerCodes>'. $bannerCodes .'</nodeId>';
23 echo '<fullclickCodes>'. $fullclickCodes .'</nodeId>';
24 echo '</configuration>';
25
26
27}