I\'m trying to style the output of each echo.
Ideally I\'d like to use
for each echo, but I\'m not too sure how to ach
$result = mysql_query("SELECT * FROM Blog");
while($row = mysql_fetch_array($result))
{
echo "$row['Date']";
echo "$row['Title']";
echo "$row['Message']";
echo "";
}
mysql_close($con);
or, much nicer, in a table:
$result = mysql_query("SELECT * FROM Blog");
echo ""
while($row = mysql_fetch_array($result)) {
echo ""
echo "$row['Date'] ";
echo "$row['Title'] ";
echo "$row['Message'] ";
echo " ";
echo " "
}
echo "
"
mysql_close($con);
You then can style each row and column with a class.