Im just starting with php/xhtml and im having the problem of displaying the valuse fom the php query in xhtml on nokia brouser. If i run the same qury on lat say firefox it will return the valuse from my databese no problem at all.
Could you please let me know how to do this and if you can please send me some examples or links to pages tahnks dominik.

ps. english is not my native languge..... sorry
dominik.koziel@gmail.com




<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Dupa zbita</title>
<link rel="stylesheet" href="style.css" type="text/css"/>
</head>
<body>
<p>
Display Database resaults


</p>


<?php
$username="root";
$password="";
$database="donik";

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM contacts";
$result=mysql_query($query);

$num=mysql_numrows($result);

mysql_close();

echo "<b><center>Database Output</center></b><br><br>";

$i=0;
while ($i < $num) {

$first=mysql_result($result,$i,"first");
$last=mysql_result($result,$i,"last");
$phone=mysql_result($result,$i,"phone");
$mobile=mysql_result($result,$i,"mobile");
$fax=mysql_result($result,$i,"fax");
$email=mysql_result($result,$i,"email");
$web=mysql_result($result,$i,"web");
echo "<br>First: $first<br>";
echo $(last);
Phone: $phone<br/>;
?>
<p>
Mobile: $(first)<br/>
Fax: $(last)<br/>
E-mail: $(phone)<br/>
Web: $(web)<br/>
</p>
<?php
$i++;
}

?>

</body>
</html>