<?php
header("Content-Type:text/html; charset=utf-8");
function login()
{
$IP = 'localhost:3306';
$yonghuming = 'root';
$password = '11111111';
$con = mysqli_connect($IP,$yonghuming,$password);//链接数据库
if (!$con)
{
die('MYSQL链接失败: ' . mysqli_error());
}
else
{
mysqli_select_db($con,'jiedeng');
return $con;
}
}
?>