connect_error) { die("fail: " . $conn->connect_error); } $sql = "select * from exam1;"; $result = $conn->query($sql); ?> exam1 - 5
num_rows > 0) { while ($row = $result->fetch_assoc()) { $temp = ""; $temp .= ""; $temp .= ""; $temp .= ""; $temp .= ""; echo $temp . ""; } } ?>
pk a b ts
" . $row["pk"] . "" . $row["a"] . "" . $row["b"] . "" . $row["ts"] . "