This article mainly introduces the mini drift bottle implemented by PHP, which involves php database read/write operations and random number operation skills. It has some reference value. If you need it, you can refer to it.
This article mainly introduces the mini drift bottle implemented by PHP, which involves php database read/write operations and random number operation skills. It has some reference value. If you need it, you can refer to it.
This example describes the mini-bottle implemented by PHP. Share it with you for your reference. The details are as follows:
Mysql. php:
<? Phpmysql_connect ('2017. 0.0.1 ', 'root', 'wjy123') or die ('exit (-1) '); mysql_select_db ('floatbtn'); mysql_query ('set names utf8 ');
Pickbtn. php:
Ppick uPublish information
Throwbtn. php:
Truncate Information <? Php @ include ('mysql. php'); if (isset ($ _ REQUEST ['send']) {echo 'Publish Successed!
'; $ Author = $ _ REQUEST ['author']; $ text = $ _ REQUEST ['text']; $ date = date ('Y-m-d h: m: s'); if (! (Null = trim ($ author ))&&! (Null = trim ($ text) {$ q = "insert into 'btn '('id', 'author', 'text', 'date ', 'flag') values ('', '$ author', '$ text',' $ date', '0')"; mysql_query ($ q) ;}?>
I hope this article will help you with php programming.
,