Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 我以前是一个人做的吗?或者在.test:hover.drop2content部分中?两个都试过>我已经更新了我的答案。现在,它显示了您需要添加的CSS。感谢您的帮助,我已经用当前的内容更新了我的问题,我比以前更接近了……您不必同时添加这两种样式。你只需要一_Php_Html_Css_Mysql_Html Table - Fatal编程技术网

Php 我以前是一个人做的吗?或者在.test:hover.drop2content部分中?两个都试过>我已经更新了我的答案。现在,它显示了您需要添加的CSS。感谢您的帮助,我已经用当前的内容更新了我的问题,我比以前更接近了……您不必同时添加这两种样式。你只需要一

Php 我以前是一个人做的吗?或者在.test:hover.drop2content部分中?两个都试过>我已经更新了我的答案。现在,它显示了您需要添加的CSS。感谢您的帮助,我已经用当前的内容更新了我的问题,我比以前更接近了……您不必同时添加这两种样式。你只需要一,php,html,css,mysql,html-table,Php,Html,Css,Mysql,Html Table,我以前是一个人做的吗?或者在.test:hover.drop2content部分中?两个都试过>我已经更新了我的答案。现在,它显示了您需要添加的CSS。感谢您的帮助,我已经用当前的内容更新了我的问题,我比以前更接近了……您不必同时添加这两种样式。你只需要一个。单独测试它们,看看它如何影响位置。 if (!empty($result)) { echo "<div class='dropdown'>"; echo "<span


我以前是一个人做的吗?或者在.test:hover.drop2content部分中?两个都试过>我已经更新了我的答案。现在,它显示了您需要添加的CSS。感谢您的帮助,我已经用当前的内容更新了我的问题,我比以前更接近了……您不必同时添加这两种样式。你只需要一个。单独测试它们,看看它如何影响位置。
if (!empty($result))
  {
            echo "<div class='dropdown'>";
              echo "<span class='label label-success'>Domain Found In History</span>";
                echo " <div class='dropdown-content'>";
                    $this_database->displaySearchResults($result);
                  echo "</div>";
              echo "</div>";
  }
  function displaySearchResults($idArray)
{
  $servername = $this->servername;
  $username = $this->username;
  $password = $this->password;
  $dbname = $this->dbname;
  #Opens the MYSQL Connection
  $conn = mysqli_connect($servername, $username, $password, $dbname);
    if (!$conn)
    {
      die("Connection failed: " . mysqli_connect_error());
    }
    ## Begining of formatting of drop down table
    echo "<table class='table table-condensed'>";
     echo "<tr>";
      echo "<th>Date</th>";
        echo "<th>Time</th>";
          echo "</tr>";
          ##Loops through all the matching ID's
    for ($i = 0; $i < count($idArray); $i++)
    {
        $stmt = $conn->prepare("SELECT * FROM dns WHERE id LIKE '$idArray[$i]' ");
          $stmt->bind_param($idArray[$i]);
            $stmt->execute();
              $result = $stmt->get_result();
              ## For ever matching ID it prints out the date/time into the drop down table
              while($row=$result->fetch_assoc())
              {
                echo "<tr class='test'>";
                  echo "<td>".$row["date"]."</td>";
                    echo "<td>".$row["time"]."</td>";
                        echo "</tr>";
                      echo "<div class='drop2content'>";
                        echo "<tr>";
                          echo "<td>Test </td>";
                              echo "</tr>";
                                echo "</div>";

              }
  }
              echo "</table>";
}
 /* Show History Drop down Styling */

/* The container <div> - needed to position the dropdown content */
.dropdown
{
   position: relative;
   display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content
{
   display: none;
   position: absolute;
   z-index: 1;
   margin-top:2%;
   background-color:white;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content
{
   display: block;
}

.drop2content
{
  display:none;
  position:absolute;
  background-color:white;
}

.test:hover .drop2content
{
  display:block;
  position:absolute;
  left:100%;
  top:0%;

}
.test > td
 {
  position:relative;
}
.test
{
  position:relative;
}
.test {
  position:relative;
}
.test > td {
  position:relative;
}
.test:hover  .drop2content {
     display: block;
}
.table {
    display: table;
}
.row {
    display: table-row;
}
.table-header, .cell {
    display: table-cell;
    padding: 2px;
}
echo "<div class='table table-condensed'>";
echo "<div class='row'>";
echo "<div class='table-header'>Date</div>";
echo "<div>Time</div>";
echo "</div>";
echo "<div class='row test'>";
echo "<div class='cell'>".$row["date"]."</div>";
echo "<div class='cell'>".$row["time"]."</div>";
echo "<div class='drop2content'>";
echo "<div>Test </div>";
echo "</div>";
echo "</div>";
.test:hover  .drop2content {
    display: block;
}