Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116948650
getAnnotationValues.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jun 10, 11:10
Size
566 B
Mime Type
text/x-php
Expires
Thu, Jun 12, 11:10 (2 d)
Engine
blob
Format
Raw Data
Handle
26673005
Attached To
R4897 i2b2-webclient
getAnnotationValues.php
View Options
<?php
$conn
=
pg_connect
(
"host=localhost port=5432 dbname=i2b2 user=postgres password=admin"
);
if
(!
$conn
)
{
echo
"Error while connecting to the postgres database"
;
exit
;
}
// get the row which contains all the values of the passed annotation
$query
=
"SELECT annotation_values FROM shrine_ont.genomic_annotations_metadata WHERE annotation_id='"
.
htmlspecialchars
(
$_GET
[
"annotation_name"
])
.
"'"
;
$result
=
pg_query
(
$conn
,
$query
);
if
(!
$result
)
{
echo
"An error occurred.
\n
"
;
exit
;
}
while
(
$row
=
pg_fetch_row
(
$result
))
{
echo
"$row[0]"
;
}
Event Timeline
Log In to Comment