i got helped here ( ) to open a picture in a new window, hte original code is bellow and the JS code i got is under it, the problem i have now is that the new window picture wont open and i wonder why
ORIGINAL CODE
NEW CODE
ORIGINAL CODE
Code:
if ( $row['picture'] != '' ) {
echo '<a href="visabild.php?id=' . $row['id'] . '">';
echo '<img width="125" src="' . $row['picture'] . '"></a>';
}
NEW CODE
Code:
echo '<a href="#" OnClick="window.open(location,"width=XXX,height=YYY")>';
echo '<img width="125" src="' . $row['picture'] . '"></a>';