Social-Network/index.php

21 lines
347 B
PHP

<?php
$con = mysqli_connect("localhost", "root", "", "social");
if(mysqli_connect_errno()) {
echo "Failed to connect to database: " . mysqli_connect_errno();
}
$query = mysqli_query($con, "INSERT INTO test VALUES(NULL,'Jonathan')");
?>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>