Python script to get the data from the flex application
- by nimmyliji
Hi,
I am making a simple Python CGI script that collects data(in xml format) from a flex application and I want to insert it into the mysql database .
In perl The script is looks like the following...
my @samplexml=$cgi->param("Items");
my $data=$xml->XMLin("@samplexml");
foreach my $e(@{$data->{Group}})
{
my $sample="Insert into details(title,Parent,Istreeitem) Values('$e->{title}','$e->{Parent}','$e->{IsTreeItem}')";
my $sam=$dbo->prepare($sample);
$sam->execute();
}
But I want to know how to write these codes in pytrhon script.... Any one can help me?
Thanks in advance.
Nimmy.