[Solved] How to allow only 4 cells per row in a table in HTML? [closed]
No, you don’t seem to understand what you’re asking. You CANNOT do this automatically with only html. Your question pertains to both Html and Php. Here’s a quick n nasty job: $pdo = new PDO(“mysql:host=$host;dbname=$dbName”, $userName, $pwd); $query = $pdo->prepare(‘select name from products order by id asc’); $query->execute(); echo ‘<table>’; echo ‘<tbody>’; $numCellsInRow = 0; … Read more