daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Nov 6th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <table class="tg">
  2.     <style type="text/css">
  3.     .tg  {border-collapse:collapse;border-spacing:0;}
  4.     .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
  5.     .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
  6.     .tg .tg-zapj{color:#656565;border-color:#000000;text-align:left;vertical-align:top}
  7.     .tg .tg-k7xs{color:#656565;border-color:#000000;text-align:left}
  8.     </style>
  9.             <tr>
  10.                 <th class="tg-9cb8"><br><span style="font-weight:bold">Direcciones
  11.                 </span><br></th>
  12.                 <th class="tg-9cb8" colspan="6"><span style="font-weight:bold">Dirección Técnica</span><br><span style="font-weight:bold">(Mónica Ramadan)</span></th>
  13.             </tr>
  14.  
  15.                     <tr>
  16.                       <td style="text-align:center;" class="tg-px8n">Documentos</td>
  17.                       <td class="tg-711x">M</td>
  18.                       <td class="tg-711x">M H</td>
  19.                       <td class="tg-711x">D J</td>
  20.                       <td class="tg-711x">R</td>
  21.                       <td class="tg-711x">P O</td>
  22.                       <td class="tg-711x">P O TNM</td>
  23.                     </tr>
  24.  
  25.     <button class="btn-large col s6 teal lighten-1 waves-effect waves-green"
  26.             style="width:110;height:60;"
  27.             type="submit">  Guardar cambios </button>
  28.             <br><br/>
  29.    
  30. <?php
  31.     $db_host = 'localhost';
  32.     $db_user = 'root';
  33.     $db_pass = '';
  34.     $db_name = 'Proyecto';
  35.  
  36.     $conn = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
  37.     if (!$conn) {
  38.         die ('Failed to connect to MySQL: ' . mysqli_connect_error());  
  39.     }
  40.  
  41.     $sql = 'SELECT * FROM tecnica1';
  42.  
  43.     $query = mysqli_query($conn, $sql);
  44.  
  45.     if (!$query) {
  46.         die ('SQL Error: ' . mysqli_error($conn));
  47.     }
  48.  
  49.             while ($row = mysqli_fetch_array($query))
  50.             {
  51.                 echo    '<tr>
  52.                         <td style="text-align:center;">'.$row['Mes'].'</td>
  53.                         <td contenteditable style="text-align:center;">'.$row['M'].'</td>
  54.                         <td contenteditable style="text-align:center;">'.$row['MH'].'</td>
  55.                         <td contenteditable style="text-align:center;">'.$row['DJ'].'</td>
  56.                         <td contenteditable style="text-align:center;">'.$row['R'].'</td>
  57.                         <td contenteditable style="text-align:center;">'.$row['PO'].'</td>
  58.                         <td contenteditable style="text-align:center;">'.$row['POTNM'].'</td>
  59.                         </tr>';                                  
  60.             }
  61. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top