Hello,
I am trying to contact a PHP-MYSQL database by an IP Phone.
However, the IP Phone shows me the following :
<CiscoIPPhoneDirectory><Prompt>Select Number</prompt> ...
instead of interpreting the "xml code".
my code is the following :
<?php
$db = mysql_connect("localhost");
mysql_select_db("xml",$db);
$result = mysql_query("SELECT * FROM directory",$db);
printf("<CiscoIPPhoneDirectory><Prompt>Select Number</Prompt><Title>DIDATA MOBILE PHONES</Title>");
while ($myrow = mysql_fetch_row($result))
{
printf(" <DirectoryEntry>");
printf(" <Name>");
printf(" $myrow[1]");
printf(" </Name>");
printf(" <Telephone>");
printf(" $myrow[2]");
printf(" </Telephone>");
printf(" </DirectoryEntry>");
}
printf(" </CiscoIPPhoneDirectory>/r/n");
?>