Developer.Sloopy Posted June 23, 2015 Report Share Posted June 23, 2015 Создаем новую таблицу "support_q": id int(11) AI; name varchar(255); numerus int(11). В support.php под $dbid = $db->insert_id(); Ставим $support_q = $db->super_query("SELECT COUNT(*) AS cnt FROM `support_q` WHERE name = '{$title}'"); if(!$support_q['cnt']){ $db->query("INSERT INTO `support_q` SET name = '{$title}', numerus = '1'"); } else { $db->query("UPDATE `support_q` SET numerus = numerus+1 WHERE name = '{$title}'"); } Ну а вывод популярных вопросов сами, ну или же позже выброшу. 1 1 Quote Link to comment Share on other sites More sharing options...
THEOUS Posted August 5, 2015 Report Share Posted August 5, 2015 или же позже выброшу. так и не выбросил вывод популярных вопросов... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.