Hello, i have the following column in mysql table.
number | name
123 | ABC XYZ
456 | DEF QRS
hre is my mysql query:
$query = "SELECT name, extension FROM users ORDER BY name ASC";
$resultID = mysql_query($query, $linkID) or die("Data not found.");
$xml_output = "<?xml version=\"1.0\"?>\n";
$xml_output .= "<AddressBook>\n";
for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){
$row = mysql_fetch_assoc($resultID);
$xml_output .= "\t<Contact>\n";
$xml_output .= "\t\t<LastName>" . $row['name'] . "</LastName>\n";
$xml_output .= "\t\t<FirstName></FirstName>\n";
for the moment my First name is blank..i need to retreive the name column and display it into different output. can someone advise how to split the data.
thanks in advance.