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>

Modify notes.php 1. Add a hyperlink to the subject field of each note. Append notes id after the URL as below, http://localh

Please use php to complete these two questions, thx.

Modify notes.php 1. Add a hyperlink to the subject field of each note. Append note’s id after the URL as below, http://localhost/note.php?id=1 2. Create note.php that display all the details of a selected note. Use $_GET[] associate array to retrieve user’s selected note id.

 


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.