Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?php
echo "<h1>Hello World</h1>";
$servername = "localhost";
$username = "root";
$password = "";
$db = "testDatabase";
$table = "myGuests";
$conn = new mysqli($servername, $username, $password);
if ($conn->connect_error) {
die("Connection failed: <br>" . $conn->connect_error);
}
else {
echo "Connected to MySQL successfully <br>";
}
$sql = "CREATE DATABASE $db";
if ($conn->query($sql) === TRUE) {
echo "Database created successfully<br>";
} else {
echo "Error creating database: <br>" . $conn->error;
}
$conn = new mysqli($servername, $username, $password, $db);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "CREATE TABLE $table (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
usernameOut VARCHAR(50) NOT NULL,
passwordOut VARCHAR(50) NOT NULL,
reg_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
)";
if ($conn->query($sql) === TRUE) {
echo "Table MyGuests created successfully<br>";
} else {
echo "Error creating table: <br>" . $conn->error;
}
$sql = "INSERT INTO $table (usernameOut, passwordOut)
VALUES ('Admin', '1-password')";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully<br>";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
$sql = "SELECT id, usernameOut, passwordOut FROM MyGuests";
$result = $conn->query($sql); // $result will be an array
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
}
} else {
echo "0 results";
}
$sql = 'DROP DATABASE testDatabase';
if ($conn->query($sql) === TRUE) {
echo "Database deleted successfully<br>";
} else {
echo "Error deleting database:<br> " . $conn->error;
}
$conn->close();
echo "The time is " . date("h:i:sa");
?>
You're right, I swiped it to the right and it was to turn on TV mode. Thanks for your help!have you swiped it to the right, it may bring up a side screen like on my Note 9 ?
Thank you!I like simple. Good luck with the app!!![]()

Facing the below issue on my system after updating the android studio and all its plugins.
FAILURE: Build failed with an exception.
* What went wrong:
Could not create an instance of type org.gradle.plugin.management.internal.DefaultPluginResolutionStrategy.
> com.google.common.collect.ImmutableList.builderWithExpectedSize(I)Lcom/google/common/collect/ImmutableList$Builder;
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
I tried with different solutions as mentioned below, but didn't get any success.
1. Invalidating cache and restart
2. Resetting Android Studio settings to default.
3. Uninstalling everything and re-installing.
4. Reverting to the previous version of android studio.
Please help me if anyone knows the solution.