上的文字,我知道我可以补充一点:如何添加一个搜索栏搜索
<form>
Search Google:
<input type="search" name="googlesearch">
</form>
但这只会让我搜索谷歌。
我希望人们能够搜索名单上的名单。 http://graphicambi.tk/onlineemployees.html
我该怎么做?
ALSO
我无法弄清楚在何处放置 太...
这里是我的代码的一部分:
}
$sql = "SELECT userID, users_name, usertype, status FROM tbluseraccounts";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
if($row["status"] == "Online"){
$tcolor = "green";
}
elseif($row["status"] == "Offline"){
$tcolor = "red";
}
echo "<br>ID: " . $row["userID"]. " <br> Name: " . $row["users_name"]. " <br> Account Type: " . $row["usertype"]. " <br> Status: <font color='".$tcolor."'>" . $row["status"]. "</font><br>";
}
} else {
echo "0 results";
}
哪里是说:
echo "<br>ID: " . $row["userID"]. " <br> Name: " . $row["users_name"]. " <br> Account Type: " . $row["usertype"]. " <br> Status: <font color='".$tcolor."'>" . $row["status"]. "</font><br>";
我想创建该边框,因此当您在此网站上时http://graphicambi.tk/onlineemployees.html每个帐户名称周围都会有一个黑色边框
谢谢。
你知道他们可以使用他们的浏览器的CTRL + F查找 – 2015-02-12 08:24:43
是。只是想法ID试图让他们更容易大声笑。 – 2015-02-12 08:56:32