title: Design php output table with css
body: <p>Please anyone who can help me with this problem. I have a html file with a question. When submit is clicked it calls a php(which is connected with my database in Oracle) and it shows a table inside the html (using ajax).
  I would like to know how can i show that table in a nicer form? Can I design it?</p>
  
  <p>Here is my code in php</p>
  
  <pre><code>    &lt;?php
      {
      session_start();
      include "connect.php";
      }
      $conn = DBConnect();
      $stid = DBExecute($conn, "select something...");
      $total = 0;
      echo "&lt;table&gt;
      &lt;tr&gt;
      &lt;th&gt;Name1&lt;/th&gt;
      &lt;th&gt;Name2&lt;/th&gt;
      &lt;/tr&gt;";
      while ($row = oci_fetch_array($stid, OCI_ASSOC)) {
      echo "&lt;tr&gt;&lt;td&gt;";
      echo $row['something'];
      echo "&lt;/td&gt;";
      echo "&lt;td&gt;";
      echo $row['something'];
      echo "&lt;/td&gt;";
  
      }
      echo "&lt;/table&gt;";
      ?&gt;
  </code></pre>
  
  <p>and I want to have for example this css instructions for the table i will show...</p>
  
  <pre><code>        #newspaper-a
          {
      font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
      font-size: 12px;
      margin: 45px;
      width: 480px;
      text-align: left;
      border-collapse: collapse;
      border: 1px solid #69c;
          }
          #newspaper-a th
          {
      padding: 12px 17px 12px 17px;
      font-weight: normal;
      font-size: 14px;
      color: #039;
      border-bottom: 1px dashed #69c;
          }
          #newspaper-a td
          {
      padding: 7px 17px 7px 17px;
      color: #669;
          }
          #newspaper-a tbody tr:hover td
          {
      color: #339;
      background: #d0dafd;
          }    
  </code></pre>
  
  <p>Please does anyone know what should i do to succeed it??? 
  Important the table will be shown inside the same page not in another one..</p>