Render a Views row ID using NID (Node ID)
In most Views templates, the entire $view object is available.  So, assuming you have a nid field in the row, you should be able to access it with something like this:

$view-&gt;result[$id]-&gt;nid


so, give

id="my-nid-is-&lt;?php print $view-&gt;result[$id]-&gt;nid; ?&gt;"&gt;


a try in your template.

If this doesn't work exactly, a print_r($view-&gt;result); up at the top of the template will give you a gander at what you have to work with.