You must escape like quotes:
PHP Code:
<?php echo "<a href='images/".$rows['filename']."' onclick=\"NewWindow(this.href,'Full Size Preview','400','400','yes','center');return false\" onfocus=\"this.blur()\">" . $rows['filename'] . "</a>"; ?>
Or, and this is probably a better way, echo less of the text:
PHP Code:
<a href="images/<?php echo $rows['filename'];?>" onclick="NewWindow(this.href,'Full Size Preview','400','400','yes','center');return false;" onfocus="this.blur();"><?php echo $rows['filename'];?></a>
Bookmarks