kiến thức tổng hợp
Home
Technology
tip
SOFTWARE
TOOL
WORDPRESS
news
windows
boot
ghost
download
code
android
C#
sql
css
PHP
Blog
ASP
Home
/
PHP
/
Beginner PHP Tutorial 123 - 126 - Creating a Database Hit Counter Part 1- 4
28 thg 9, 2015
Beginner PHP Tutorial 123 - 126 - Creating a Database Hit Counter Part 1- 4
Thứ Hai, tháng 9 28, 2015
PHP
=1) { return true; } } function ip_add($ip) { $query = "INSERT INTO 'hits_ip' VALUES ('$ip') "; @$query_run = mysql_query($query); } function update_count() { $query =" SELECT `count` FROM `hits_count` "; if (@$query_run = mysql_query($query)) { $count = mysql_result($query_run,0,'count'); $count_inc = $count +1; $query_update ="UPDATE `hits_count` SET `count` = '$count_inc' " ; @$query_update_run = mysql_query($query_update); } } if (ip_exists($user_ip)) { update_count(); ip_add($user_ip); } ?>
My page
Beginner PHP Tutorial 123 - 126 - Creating a Database Hit Counter Part 1- 4
2015-09-28T15:23:00+07:00
Rating:
4.5
Diposkan Oleh:
http://pdunoteit.blogspot.com/
Bài đăng Mới hơn
Bài đăng Cũ hơn
Trang chủ
Lên đầu trang
NEW PICTURE
POPULAR POST