<?
ob_start();
session_start();
$sess_userid=$_SESSION[sess_userid];
$sess_username=$_SESSION[sess_username];
if ($sess_userid<>session_id() or $sess_username=="") {
header( "Location: login.php"); exit();
}
?>
<?
$id_color=$_GET["id_color"];
include "connect.php";
$sql="select count_click1 from tb_color where id_color='$id_color' ";
$result=mysql_db_query($dbname,$sql);
$rs=mysql_fetch_array($result);
$count_click1=$rs[count_click1];
$count=$count_click1+1;
$sql2="update tb_color set count_click1='$count' where id_color='$id_color' ";
$result2=mysql_db_query($dbname,$sql2);