Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/258.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上不工作?当我试图打开模式窗口时,它不会显示_Php_Mysql_Html Table_Modal Dialog_Bootstrap Modal - Fatal编程技术网

为什么我的引导模式窗口在php上不工作?当我试图打开模式窗口时,它不会显示

为什么我的引导模式窗口在php上不工作?当我试图打开模式窗口时,它不会显示,php,mysql,html-table,modal-dialog,bootstrap-modal,Php,Mysql,Html Table,Modal Dialog,Bootstrap Modal,我创建了一个带有太多按钮的表:删除和另一个要查看的按钮 其他配置文件此按钮显示模式,按钮循环 整个桌子。它应该显示模态,但对于 有些原因。我已经纠正了尽可能多的错误,但是 按钮不显示模式 function crea_tabla_foros() { /* here I create a query to select my tables*/ /*I execute it */ $rs = ejecutar($q); /*I create a w

我创建了一个带有太多按钮的表:删除和另一个要查看的按钮 其他配置文件此按钮显示模式,按钮循环 整个桌子。它应该显示模态,但对于 有些原因。我已经纠正了尽可能多的错误,但是 按钮不显示模式

function crea_tabla_foros() {    
    /* here I create a query to select my tables*/
    /*I execute it */       
    $rs = ejecutar($q);
    /*I create a while to make the table dynamic */ 
    $contenido = " ";
    while($r = mysqli_fetch_array($rs)) {
    /*calling mysql*/
        $id_foro = $r['id_foro'];
        $nombreforo = $r['nombreforo'];
        $usuario = $r['usuario'];
        $comentarios = $r['comentarios'];
        $id_comentarios = $r['id_comentarios'];  
        $contenido .= "
            <tr>
                <td style='color:black;'>$nombreforo</td>
                <td style='color:black;'>$usuario</td>
                <td style='color:black;'>$comentarios </td>
                <td>
                    <form method='post' action='bak_foros.php'>
                        <input type='hidden' name='id_comentarios' value='$id_comentarios'>
                        <input class='trash' type='submit' name='eliminar' value='Eliminar'>
                    </form>
                    /*HERE IS THE BUTTON FOR THE MODAL*/
                    <button data-toggle='modal' data-target='#ver'>VER</button>**
                </td>
            </tr>"
这是应该显示的模态,它位于 主体,但在PHP函数之外:

<div id="ver" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">PERFILES DE PARTICIPANTES</h4>
      </div>
      <div class="modal-body">
      <p></p>
      </div>

      <div class="modal-footer">
          <button class="publicar">PUBLICAR</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">CANCELAR</button>
      </div>
    </div>

  </div>
</div>   
这里是链接


您已将您的模态放置在以下div中

<div class="filterDiv pendientes">

它有一个css显示:none属性。把它放在这个div之外,它应该会显示出来。

请发布您的代码!当一切都在图片中时,很难帮助你。很高兴能帮助你: