Is this the way PHP developers write PHP or is echoing the html the preferred method?
<html>
<head>
</head>
<body>
<?php
require_once 'db_connect.php';
session_start();
$result = mysql_query("SELECT * FROM products");
?>
<table border=1>
<th>
Product ID
</th>
<th>
Name
</th>
<th>
Description
</th>
<th>
Price
</th>
<th>
Image
</th>
<th colspan=2>
Action
</th>
<?php
while($row = mysql_fetch_array($result))
{
?>
<tr>
<td>
<?php
echo $row['p_id'];
?>
</td>
<td>
<?php
echo $row['p_name'];
?>
</td>
<td>
<?php
echo $row['p_description'];
?>
</td>
<td>
<?php
echo $row['p_price'];
?>
</td>
<td>
<?php
echo $row['p_image_path'];
?>
</td>
<td>
edit
</td>
<td>
delete
</td>
</tr>
<?php
}
?>
</table>
</body>
</html>