![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
qing_dr
这个作者很懒,什么都没留下…
展开
-
PHP登录
前端页面<form class="ui large form" method="post" action="#"> <div class="ui segment"> <div class="field"> <div class="ui left icon input"> <i class="user icon"></i>原创 2021-12-11 21:58:37 · 237 阅读 · 0 评论 -
PHP调用数据呈现在前端
前端呈现<?php foreach($pic as $p) {?> <tr align="center"> <td><?php echo $p['id'];?></td> <td><?php echo $p['picturename'];?></td> <td><?php echo $p['pict原创 2021-10-19 21:11:59 · 457 阅读 · 0 评论 -
PHP删除数据
前端输入<?php foreach($pic as $p) {?> <tr align="center"> <td><?php echo $p['id'];?></td> <td><?php echo $p['picturename'];?></td> <td><?php echo $p['pict原创 2021-10-19 21:08:58 · 258 阅读 · 0 评论 -
PHP与数据库的传值
PHP将前端获取到的值传入到数据库中,包括对数据库初始化,sql指令post传值<?phpif (empty($_POST)){ include ('../admin/pictures-input.html');}else{ //数据库初始化 header('Content-type:text/html;charset=utf-8');//连接认证 $link = mysqli_connect('localhost:3306','root','123456原创 2021-10-17 19:23:56 · 421 阅读 · 0 评论 -
PHP上传文件
选择文件,进行判断,并将文件传入到指定文件夹<?phpheader('Content-type:text/html;charset=utf-8');/**实现文件上传*$param1 array $file*$param2 aray $allow_type 允许上传的MIME类型*$param3 string $path 存储路径*$param4 string $error 出错原因*$param5 array &allow_format = array() 允许上传文件原创 2021-10-17 19:20:08 · 94 阅读 · 0 评论 -
PHP使用QQ邮箱发送邮件
QQ邮箱需要开启stmp,phpstudy需要开启ssl权限<?phprequire_once("./PHPMailer/src/class.phpmailer.php"); //PHPMailer路径得正确require_once("./PHPMailer/src/class.smtp.php");//use PHPMailer\PHPMailer;/*发送邮件方法*@param $to:接收者 $title:标题 $content:邮件内容*@return bool true:原创 2021-10-17 19:15:33 · 977 阅读 · 0 评论 -
PHP生成二维码
<?phpinclude 'phpqrcode/phpqrcode.php';// QRcode::png("http://192.168.43.81/school/tqdzccom/add_yundongyuan.php?id=" . $_GET['cid'] . "&cadmin=" . $_GET['cadmin']);QRcode::png('http://192.168.43.81/school/tqdzccom/add_yundongyuan.php?id=73&am.原创 2021-10-17 19:09:46 · 108 阅读 · 0 评论