<?php 
include('header.php'); 
 
echo '<div class="row">'; 
echo '<div class="col-md-12">'; 
 
//var_dump($relationTable); 
//echo $relationTable['depo']['changedRow']; 
echo '<ul class="list-group">'; 
foreach ($tables as $table) { 
    //echo '<div class="col-md-2" style="height: 200px; width: 200px; border: black 3px solid; float: left; text-decoration: none; border-radius:25px; margin: 5px;">'; 
 
 
        echo '  
 <li class="list-group-item ">'; 
        echo '<form  id="' . $table[0] . '"  action="tables.php" method="post">'; 
        echo '<input  type="hidden" name="table_name" value="' . $table[0] . '" ></input>'; 
        echo '<button type="submit" class="btn btn-default " >' . $table[0]. ' <span  class="badge badge-primary">'. countRows($connect, $table[0]  ).'</span >'; 
        echo '</form>'; 
       if(isset($relationTable[$table[0]])){ 
           echo '<br /><font > Relation =  
   '. $relationTable[$table[0]]['changedRow'] .' to  => <b>' . $relationTable[$table[0]]['secondTable'] . ' </b>  . <i>' . $relationTable[$table[0]]['findRow'] . '</i> with <b>' . $relationTable[$table[0]]['secondTable'] . ' </b> . <i>' . $relationTable[$table[0]]['secondRow']  .'</i> 
  </font>'; 
       } 
        if(isset($imageColums[$table[0]])){ 
            echo '<br/><font>  Image Row = <b>'. $imageColums[$table[0]] .'</b> </font>'; 
        } 
 
  echo '</li >'; 
 
 
} 
echo '</ul>'; 
 
echo '</div>'; 
echo '</div>'; 
include('footer.php');
 
 |