Page MenuHomec4science

getAnnotations.php
No OneTemporary

File Metadata

Created
Mon, Feb 24, 08:55

getAnnotations.php

<?php
//echo "Connecting ... <br>";
$conn = pg_connect("host=localhost port=5432 dbname=i2b2 user=postgres password=admin");
if (!$conn) {
echo "Error while connecting to the postgres database";
exit;
}
// just get the first row (which already contain all the annotations' name)
$result = pg_query($conn, "SELECT variant_annotations FROM shrine_ont.genomic_annotations LIMIT 1");
if (!$result) {
echo "An error occurred.\n";
exit;
}
while ($row = pg_fetch_row($result)) {
echo "$row[0]";
}

Event Timeline