2 Unstar Star 3 Fork 0

rumosky / 学生信息管理PHPGPL-3.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
简易学生信息管理系统,仅仅是一个测试代码,仅供参考。 spread retract

Clone or download
dbconfig.php 401 Bytes
Copy Edit Web IDE Raw Blame History
如默 authored 2019-01-02 20:13 . 增加SQL server支持
<?php
//1.连接数据库
try {
$pdo = new PDO("mysql:host=localhost;dbname=web_test;","web_test","abc123456");
} catch (PDOException $e) {
die("数据库连接失败" . $e->getMessage());
}
//2.解决中文乱码问题
$pdo->query("SET NAMES 'UTF8'");
//以上配置信息适用于MySQL,SQL server请查看说明文档
?>

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/rumosky_admin/student_information_management.git
git@gitee.com:rumosky_admin/student_information_management.git
rumosky_admin
student_information_management
学生信息管理
master

Search