Hello World'; ?>
connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Testing";
$sql="SELECT * FROM `TestTable`";
$result = mysqli_query($conn, $sql);
$num_rows = mysqli_num_rows($result);
echo "$num_rows Rows\n";
echo "";
echo "";
echo "| KeyID | ";
echo "Value1 | ";
echo "Value2 | ";
echo "
";
while($row = mysqli_fetch_array($result)){
echo "";
echo "| " . $row['KeyID'] . " | ";
echo "" . $row['Value1'] . " | ";
echo "" . $row['Value2'] . " | ";
echo "
";
}
echo "
";
// Free result set
mysqli_free_result($result);
//$result = mysqli_query($conn, $sql)
// Close connection
mysqli_close($conn);
?>