a href from database code example Example: a href from database echo '<td><a href="' . $row['url'] . '">' . $row['anchor'] . '</a></td>';