Posted by: Purab on: October 8, 2009
Here I am giving you the very basic sample code for creating the XML file through PHP and MYsql
<?php
// We'll be outputting a PDF
header('Content-type: text/xml');
echo "”
$db_name = “testDB”;
$connection = mysql_connect(“example.com”, “username”, “password”) or die(“Could not connect.”);
$table_name = ‘user’;
$query = “select * from ” . $table_name;
$result = mysql_query($query, $connection) or die(“Could not complete database query”);
$num = [...]
Posted by: Purab on: September 14, 2009
XML is most popular data transfer layer.
In every language we need XML parsing. In Ruby there is in build XML strong parsing support.
In this post I am going to cover the How to create XML file with simple Ruby code.
TIP: If you are new in Rails than follow step one or go to step two.
1. [...]
Recent Comments