Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: us
2015-04-03 13:17
609 查看
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: us
说mysql_connect这个模块将在未来弃用,请你使用mysqli或者PDO来替代
<?php
$con = mysql_connect("127.0.0.1","root","begin110");
if($con)
{
echo "Connect Mssql Success!";
}
else
{
echo "Connect Mssql Error!";
}
?>改为
<?php
$con = mysqli_connect("127.0.0.1","root","begin110");
if($con)
{
echo "Connect Mssql Success!";
}
else
{
echo "Connect Mssql Error!";
}
?>
说mysql_connect这个模块将在未来弃用,请你使用mysqli或者PDO来替代
<?php
$con = mysql_connect("127.0.0.1","root","begin110");
if($con)
{
echo "Connect Mssql Success!";
}
else
{
echo "Connect Mssql Error!";
}
?>改为
<?php
$con = mysqli_connect("127.0.0.1","root","begin110");
if($con)
{
echo "Connect Mssql Success!";
}
else
{
echo "Connect Mssql Error!";
}
?>
相关文章推荐
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: u
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- Deprecated: mysql_connect(): The mysqlextension is deprecated and will be removed in the future: use
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: