Some tips on outputting HTML with PHP:
- Use single quotes so that you don't have to escape the double quotes (when using echo),
- Use htmlspecialchars() to properly escape any "rogue" values you may have.
Example using echo:
echo '';
Or printf():
printf('',
htmlspecialchars($row['id'], ENT_QUOTES, 'UTF-8')
);
Or, in HTML mode:
?>