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