update hits i billedegalleri
Jeg har følgende script som jeg skal har sat tæller på.hvordan kan jeg sætte det ind ??
<--- kode start --->
<HTML><HEAD><TITLE>:: » Billedarkiv » Billeder</TITLE><body bgColor=#C5D1DE> <center><TABLE cellSpacing=4 cellPadding=4 width=684 border=0>
<script language = javascript>
function image_open(image_loc,img)
{
HTML = "<html><style>body{margin:0px 0px 0px 0px}</style><body onBlur='top.close()'><img src='"+ image_loc +"' border=0 name=load_image onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+30)'></body></html>";
popupImage = window.open('','_blank','toolbar=no,scrollbars=no');
popupImage.document.open();
popupImage.document.write(HTML);
popupImage.document.close();
obj_img = document.getElementById(img);
obj_img.src= obj_img.src;
}
</script>
<body bgColor=#C5D1DE>
<center><b>klik på billedet for at se det i fuld størrelse !!</b><br><br>
<TABLE cellSpacing=4 cellPadding=4 width=684 border=0>
<?
mysql_connect("lokalhost","bruger","password");
$result=mysql("billedegalleri","select * from billede_serie where serie=$serie ORDER By id DESC limit 500");
$count=0;
while($row=mysql_fetch_row($result)) {
$id=$row[0];
$kommentar=$row[1];
$link=$row[2];
$serie=$row[3];
$hits=$row[4];
if ($count%2 == 0) echo " <TR>";
echo " <TD width=110>
<DIV align=center><a href=\"java script:image_open('$link','img1')\" border=0><img src=\"$link\" border=0 width=\"188\" id=img1></a>";
if ($count%2 != 0) echo " </TR>";
$count++;
} //endwhile
if ($count%2 != 0) echo " <td> </td>
</TR>";
{
echo "
</table><br><br><center><A HREF=\"java script:history.go(-1)\"><-- tilbage til Billede Menu--></a>
<br><br><br><br>
";
}
?>
<--- kode slut --->
