I have a "while loop" on a PHP page with stuff coming from a DB, how do I make that the content should come as a table with a few row and columns?
shaya4207
8
Junior Poster
Recommended Answers
Jump to Post<?php if (isset($_POST['submit'])) { echo "<table width = 90% border = '1' cellspacing = '5' cellpadding = '0'>"; // set variables from form input $rows = $_POST['rows']; $columns = $_POST['columns']; // loop to create rows for ($r = 1; $r <= $rows; $r++) { echo "<tr>"; // …
All 3 Replies
diafol
rajarajan2017
shaya4207
commented:
Answer is nice and clear...
+1
hemgoyal_1990
5
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.