怎样PHP是否链接到了MySQL数据库

2025-03-10 01:14:31
推荐回答(1个)
回答1:

$conn=mysql_connect("ip",用户,密码)
!$conn&&exit('链接失败');