"; } if(isset($_GET['p'])) { $data_post=get_post($_GET['p']); $qry="INSERT INTO ranking_open_news (id_new, hits, title_post) values ('".$_GET['p']."','1','".$data_post->post_title."') ON DUPLICATE KEY UPDATE hits=hits+1"; mysql_query($qry); } mysql_close(); //var_dump($data_post); header("Location: ". get_permalink($_GET['p']) );exit;