Social-Network/index.php

21 lines
347 B
PHP
Raw Normal View History

2024-01-18 21:47:19 +00:00
<?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>