Hi,
I have a php script in a .php file which returns the result set correctly, however the same php script placed in a htm file created in Frontpage the result set is blank. There are no errors reported, just blank rows.
Any ideas would be greatfully received.
<html>
<head>
<title>test</title>
<meta name="Microsoft Theme" content="profile 000, default">
<meta name="Microsoft Border" content="tlb, default">
</head>
<body>
Here it is
<br>
<TABLE BORDER=0 BGCOLOR='#55BFFF' CELLSPACING=2 CELLPADDING=0 WIDTH='50%'>
<TR>
<TD><P><B>Name</B></P></TD>
<TD><P><B>Address</B></P></TD>
</TR>
</table>
<?php
$db = mysql_connect("localhost","user","password") or die("Unable to connect");
mysql_select_db("mydb_uk_db",$db);
$requete = "SELECT * from test";
$result = mysql_query ($requete,$db)or die("No record");
While ($row = mysql_fetch_assoc($result))
{
echo "<TR>";
echo "<TD><SPAN STYLE= 'font-size: 11px;'>";
echo $row["name"];
echo "</TD>";
echo "<TD><SPAN STYLE= 'font-size: 11px;'>";
echo $row["address"];
echo "</TD>";
echo "</TR>";
}
echo "</table>";
mysql_free_result($result);
?>
</body>
</html>