$db = mysql_connect("localhost", "mourot", "97ch67dw") or die("Cannot connect."); mysql_select_db("mourot_hits",$db) or die("Cannot select db."); $req_cur_hit = mysql_query("select hits from hits", $db) or sql_error($req_cur_hit); $obj_cur_hit = mysql_fetch_object($req_cur_hit); $hits=$obj_cur_hit->hits; mysql_query("update hits set hits=hits+1", $db); ?>