connect_error) { echo "Not connected, error: " . $mysqli_connection->connect_error; } else { echo "Connected.
"; $sql = "SELECT * FROM ".$table_name.""; $result = mysqli_query($mysqli_connection, $sql); // First parameter is just return of "mysqli_connect()" function echo "
"; echo ""; while ($row = mysqli_fetch_assoc($result)) { // Important line !!! Check summary get row on array .. echo ""; foreach ($row as $field => $value) { // I you want you can right this line like this: foreach($row as $value) { echo ""; // I just did not use "htmlspecialchars()" function. } echo ""; } echo "
" . $value . "
"; } ?>