I need to print individual fields from the
$content variable in
node.tpl.php file in separate
div tags. How do I do that and how do I find out what the field's names are?
You can use the Devel module and use dpm($content) or kpr($content) functions in your node.tpl file. From there you can see all the names and render them the way you want.
The best way to find the fields available are :
<?php print render($content); ?>
in your tpl file. This would display the list of fields available. You can remove these lines later. Then, to print your individual fields you can just do:
print render($content['field_blog_pic']); or print $title
depending on your fields (user pictures, image fields, normal text and so on).
I use the Devel Module，to find the field name. It's very useful.