随笔分类 -  PHP学习随笔

摘要:Notice: Undefined index: new in E:\WWW\app\index.php on line 64 此提醒一般是因为PHP变量没有事先声明就直接用,所以系统给出提醒,并非错误 <?php $uname = $_GET['username']; if($uname == ' 阅读全文
posted @ 2021-09-15 23:56 luckyfruit 阅读(1007) 评论(0) 推荐(0)
摘要:<?php //设置编码格式 header("Content-type:text/html;charset=utf-8"); //设备变量 $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "te 阅读全文
posted @ 2021-09-06 13:24 luckyfruit 阅读(579) 评论(0) 推荐(0)