Syntax to add "target=_blank" into a link in a loop

Can’t quite seem to get the syntax for this…

Basically the line is:

<a href=\\"http://www.mysite.com/hit_counter2.php?LodgeID=" . $row['LodgeID'] . " \\" >" . $row['Lodge'] . " </a>

And I just need to add the target=“_blank” part so that links open in a new window.

Thanks.


<?php
echo '<a href="http://example.org/?LodgeID=', $row['LodgeID'], '" target="_blank">', $row['Lodge'], '</a>' ;

Or…


<?php
printf(
  '<a href="http://example.org/?LodgeID=%d" target="_blank">%s</a>',
  $row['LodgeID'],
  $row['Lodge']
);

Thank you!