时间:2021-07-01 10:21:17 帮助过:23人阅读
mysql.php:
<?php mysql_connect('127.0.0.1','root','wjy123') or die('exit(-1)'); mysql_select_db('floatbtn'); mysql_query('set names utf8');
pickbtn.php:
ppick u 发布信息
throwbtn.php:
微软雅黑 截取信息 <?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); } } ?>
希望本文所述对大家的php程序设计有所帮助。