-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetail.php
More file actions
27 lines (21 loc) · 711 Bytes
/
detail.php
File metadata and controls
27 lines (21 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
include_once("dbconnect.inc.php");
$mysqli = new mysqli($host, $user, $password, $database);
if (mysqli_connect_errno())
{
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$ui = $_GET['ui'];
$article = array();
$query = "SELECT * FROM TREC9 WHERE ID=".$ui;
$result = $mysqli->query($query) or die($mysqli->error.__LINE__);
$row = $result->fetch_row();
echo "<h2>".$row[3]."</h2>";
echo "<b>MEDLINE identifier:</b><br>".$row[0]."<br><br>";
echo "<b>Author:</b><br>".$row[6]."<br><br>";
echo "<b>Source:</b><br>".$row[1]."<br><br>";
echo "<b>Publication type:</b><br>".$row[4]."<br><br>";
echo "<b>MeSH terms:</b><br>".$row[2]."<br><br>";
echo "<b>Abstract:</b><br>".$row[5];
?>