Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add a scroll bar to my table?
    primarykey
    data
    text
    <p>I want to my table to have a scroll bar so that the page will not have too height and i tried many answers that i've searched but nothing is happening. here is my code.</p> <pre><code> &lt;div class="text"&gt;List Of Product &lt;/div&gt; &lt;div id="tableContainer" class="tableContainer"&gt; &lt;table border="0" cellpadding="0" cellspacing="0" width="100%" class="scrollTable"&gt; &lt;thead class="fixedHeader"&gt; &lt;tr&gt; &lt;th&gt;Image&lt;/th&gt; &lt;th&gt;Item Name&lt;/th&gt; &lt;th&gt;Item Price&lt;/th&gt; &lt;th&gt;Item Description&lt;/th&gt; &lt;th&gt;&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;?php include('config.php'); $result2 = mysql_query("SELECT * FROM category"); while ($row2 = mysql_fetch_array($result2)) { $ble = $row2['id']; $result3 = mysql_query("SELECT * FROM athan_products where product_id='$ble'"); echo '&lt;tbody class="scrollContent"&gt;'; echo "&lt;tr&gt;"; while ($row3 = mysql_fetch_array($result3)) { echo '&lt;td class="templatemo_pizza_box"&gt;&lt;img alt="Motor" src="images/motor/' . $row3['product_photo'] . '" width="65px" height="65px" /&gt;&lt;/a&gt;&lt;/td&gt;'; echo '&lt;td class="textbox"&gt; ' . $row3['partsname'] . ' &lt;/td&gt;'; echo '&lt;td class="textbox"&gt; ' . $row3['price'] . ' &lt;/td&gt;'; echo '&lt;td class="textbox"&gt; ' . $row3['description'] . ' &lt;/td&gt;'; echo '&lt;td&gt;&lt;a rel="facebox" href=portal.php?id=' . $row3["product_id"] . '&gt;&lt;input type="submit" value="Add to Cart"/&gt;&lt;/td&gt;'; } echo '&lt;/tr&gt;'; echo "&lt;/tbody&gt;"; } ?&gt; &lt;/table&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload