我正在尝试为数据库连接创建一个单独的登录文件,因为我不太喜欢在每个需要数据库访问的页面上有所有的访问详细信息。mysqli_connect("$hostname","$username","$password","$database") or die ("Could not connect to the server");Can't connect to
我一直收到这个错误:Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in functions.phpon line 4 error reading database
$result = mysql_query("SHOW TABLESLIKE '$gn'",$db) or die ('error