作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我刚刚托管了我的 self 培训网站,现在我收到此警告。我知道我一定没有打开警告通知,所以现在出现了。如何修复它。
您可以在此处查看警告消息site
这是我的 php 代码
<html>
<?php
require("db_connect.php");
?>
<head>
<title>Instant Blog</title>
<link href='images/home.ico' rel='icon' type='image/vnd.microsoft.icon'/>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="postsContainer">
<?php while($row = mysql_fetch_array($result))
{
echo "<p class=\"postedText\">" . $row['post'] . "</p>";
}
$something = mysql_close($db_conn); //Warning points here.
?>
</div>
<form action="index.php" method="post">
<div class="container">
<textarea rows="10" name = "blogText" cols="150" class="blogBox"></textarea>
<input type="image" src="images/button.png" name="btnPost" value="Post" class="postButton" style="" padding-top: 2px;/>
</div>
</form>
</body>
最佳答案
如果有人错过了原始帖子中的评论,问题在于变量 $db_conn
是错误的。
关于php - mysql_close() : supplied argument is not a valid MySQL-Link,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7856442/
我是一名优秀的程序员,十分优秀!