0) { $row = mysql_fetch_array ($result); $new = $row["Total"] + 1; $sql = "update WEB_COUNTER set Total = '".$new."'"; mysql_query($sql, $conn); $_SESSION["s_visitor"] = $new; } else { $sql = "insert into WEB_COUNTER(Total) values ('1')"; mysql_query($sql, $conn); $_SESSION["s_visitor"] = 1; } } }else{ $msg = "Cannot connect to database."; } }else{ $msg = "Cannot connect to database server."; } mysql_close($conn); ?> HKSUGIS
Visitor: All rights reserved by HKSUGIS. | copyright and disclaimer