Commit 2195929c authored by Mac Newbold's avatar Mac Newbold
Browse files

Impose an ordering on people and expts so you can find the one you're looking for...

parent 30452e80
...@@ -55,7 +55,7 @@ SHOWPROJECT($pid, $uid); ...@@ -55,7 +55,7 @@ SHOWPROJECT($pid, $uid);
$query_result = $query_result =
DBQueryFatal("SELECT m.*,u.* FROM group_membership as m ". DBQueryFatal("SELECT m.*,u.* FROM group_membership as m ".
"left join users as u on u.uid=m.uid ". "left join users as u on u.uid=m.uid ".
"WHERE pid='$pid' and gid='$pid'"); "WHERE pid='$pid' and gid='$pid' order by u.uid");
if (mysql_num_rows($query_result)) { if (mysql_num_rows($query_result)) {
echo "<center> echo "<center>
<h3>Project Members</h3> <h3>Project Members</h3>
...@@ -100,7 +100,7 @@ if (mysql_num_rows($query_result)) { ...@@ -100,7 +100,7 @@ if (mysql_num_rows($query_result)) {
# A list of project experiments. # A list of project experiments.
# #
$query_result = $query_result =
DBQueryFatal("SELECT eid,expt_name FROM experiments WHERE pid='$pid'"); DBQueryFatal("SELECT eid,expt_name FROM experiments WHERE pid='$pid' order by eid");
if (mysql_num_rows($query_result)) { if (mysql_num_rows($query_result)) {
echo "<center> echo "<center>
<h3>Project Experiments</h3> <h3>Project Experiments</h3>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment