kapil1312
02-24-2007, 07:27 AM
hi
I am new to php.
I am fetching firstname from table ....
$sql="SELECT * FROM table";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
$rows['firstname'];
Now I want to create XML and use $rows['firstname']; as an attribute
header('Content-Type:text/xml');
"<person firstname=" $print_latitude />" //Its not working.
Can anybody help me to do this ?
Thanks
I am new to php.
I am fetching firstname from table ....
$sql="SELECT * FROM table";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
$rows['firstname'];
Now I want to create XML and use $rows['firstname']; as an attribute
header('Content-Type:text/xml');
"<person firstname=" $print_latitude />" //Its not working.
Can anybody help me to do this ?
Thanks