Menu
Have the following code working absolutely fine, but….
Would like the image to pop up in a new window, preferably using javascript (perhaps lightwindow)
How would I place the javascript class within the “echo “<a href=” section?
Any help greatly appreciated
*******CODE
<?php
mysql_select_db (‘rrrrrr’);
$num_displayed = 1;
$result = mysql_query (“SELECT * FROM rrrrrrr ORDER BY RAND() LIMIT $num_displayed”);
while ($row = mysql_fetch_array($result))
{
[COLOR=”Red”] echo “<a href=”” . $row[“link”] . “”>
<img src=”” . $row[“image”] . “” border=0 alt=”” . $row[“text”] . “”>
</a>” ;
?>