Counter styling
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$getHitsQuery = "
|
||||
SELECT
|
||||
hits
|
||||
FROM
|
||||
Counter
|
||||
WHERE
|
||||
siteID LIKE :SID";
|
||||
|
||||
$setHitsQuery = "
|
||||
INSERT INTO
|
||||
Counter(siteID, hits)
|
||||
VALUES
|
||||
(:SID, 1)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
hits = hits + 1";
|
||||
Reference in New Issue
Block a user