connect_errno) { // Print the connection error message echo "Failed to connect to MySQL: " . mysqli_connect_error(); // You can also log the error message to a file or other logging mechanism // error_log("Failed to connect to MySQL: " . mysqli_connect_error()); exit(); // Exit the script if there's a connection error } $getNotes = "select * from nota" ; $notes = mysqli_query($db,$getNotes); if(!$notes){ echo "Error: " . mysqli_error($db); } mysqli_close($db); ?> Document

Notes manager