connect_errno ) * { * echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . * ") " . $mysqli->connect_error; * exit(1); // Is that right? * } * ... * if ( ! $mysqli->query($sql) ) * ... * * $mysql->close(); */ ?> "; mysql_close($con); ?> Entry added to database:

"; echo "title: $title
"; echo "artistName: $artistName
"; echo "year: $year
"; echo "museum: $museum
"; echo "medium: $medium
"; echo "includeURL: $includeURL
"; echo "postedBy: $postedBy
"; echo "notes: $notes
"; ?>

See your gallery entry on the COMP 105 Art Gallery.