<?php
$cn = mysql_connect('localhost','root','root');
if( $cn )
{
die('数据库连接成功');
}
else
{
die('连接失败');
}
教程链接:
随意转载~但请保留教程地址★
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn