I store my image names and url in a db, i use this script to display the image and link it to a url. $num_displayed = 1 ; $result = mysql_query ("SELECT * FROM details WHERE status='ok' ORDER BY RAND() LIMIT $num_displayed"); while ($row = mysql_fetch_array($result)) echo "<a href=\"".$row["url"] . "\"> <img src=\"".$row["image"]."\"> </a>" ; this all works fine my problem is that i display it in an Iframe . so I need the link to open in a new window. any ideas?
Nope didn't work, But this did, <head> <base target="_blank"> </head> can't believe I didn't think of it before... thanx mate