Forum Moderators: coopster
I have written a script to connect to a MySql database and I am making a query and returing a result. This works just fine. the problem I am haivng is, I want to output the results to html.
while($row = mysql_fetch_array( $rs ))
{
echo ("<b>" .$row["PostTitle"] ."</b><br /> Date Posted: " .$row["NewDate"] . "<br /> <hr>");
echo ($row["PostText"]."<br /> <hr>");
}
Instead of echoing I want to echo the results here:
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<?php echo here instead ?>
</body>
</html>
Any help would be appricated.