Create note.php that display all the details of a selected note. Use $_GET[] associate array to retrieve user’s selected note id
nodes.php
<?php
// 1. Create a database connection
$dbhost = “localhost”;
$dbuser = “root”;
$dbpass = “”;
$dbname = “ast20401”;
$connection = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
// Test if connection succeeded
if(mysqli_connect_errno()) {
die(“Database connection failed: ” .
mysqli_connect_error() .
” (” . mysqli_connect_errno() . “)”
);
}
?>
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines
Order Paper Now<!doctype html>
<html>
<head>
<meta charset=”UTF-8″>
<title>Notes Mini Web App</title>
</head>
<body>
<?php
$query = “SELECT * “;
$query .= “FROM notes “;
echo “DEBUG – SQL query to execute: ” . $query;
$result = mysqli_query($connection, $query);
while ($note = mysqli_fetch_assoc($result)) {
echo “<p>” . $note[“id”] . “. ” . $note[“subject”] . “</p>”;
}
mysqli_free_result($result);
mysqli_close($connection);
?>
</body>
</html>
Please use php to complete these two questions, thx.
The post Create note.php that display all the details of a selected note. Use $_GET[] associate array to retrieve user’s selected note id appeared first on nursing assignment tutor.