Prova così...

Codice PHP:
echo "<td> [img]../images/".$immagine2."[/img]</td>"