Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81773148
just_a_check.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
Sat, Sep 7, 21:00
Size
499 B
Mime Type
text/x-php
Expires
Mon, Sep 9, 21:00 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20617750
Attached To
R2664 SHRINE MedCo Fork
just_a_check.php
View Options
<?php
include
'sqlConnection.php'
;
$query
=
"SELECT variant_annotations
FROM genomic_annotations
WHERE variant_id = -8935125523235860480"
;
$result
=
pg_query
(
$conn
,
$query
);
if
(!
$result
)
{
echo
"An error occurred in querying the database.
\n
"
;
exit
;
}
// In json format return the list of genes
$geneList
=
""
;
while
(
$row
=
pg_fetch_row
(
$result
))
{
$geneList
.=
"
\"
$row[0]
\"
,"
;
}
// drop the last comma and concatenate in json format
echo
"["
.
substr
(
$geneList
,
0
,
-
1
)
.
"]"
;
Event Timeline
Log In to Comment