Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
49cb9931
Commit
49cb9931
authored
Dec 21, 2000
by
Leigh B. Stoller
Browse files
Add an "order by" clause to sort by pid,eid in lists.
parent
ec134951
Changes
3
Hide whitespace changes
Inline
Side-by-side
www/endexp_list.php3
View file @
49cb9931
...
...
@@ -17,7 +17,8 @@ LOGGEDINORDIE($uid);
#
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"select e.pid,eid,expt_name from experiments as e "
.
"left join proj_memb as p on p.pid=e.pid where p.uid='
$uid
'"
);
"left join proj_memb as p on p.pid=e.pid where p.uid='
$uid
' "
.
"order by e.pid,eid"
);
if
(
mysql_num_rows
(
$query_result
)
==
0
)
{
USERERROR
(
"There are no experiments running in any of the projects "
.
...
...
www/showexp_list.php3
View file @
49cb9931
...
...
@@ -20,12 +20,13 @@ $isadmin = ISADMIN($uid);
#
if
(
$isadmin
)
{
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"select pid,eid,expt_name from experiments"
);
"select pid,eid,expt_name from experiments
order by pid,eid
"
);
}
else
{
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"select e.pid,eid,expt_name from experiments as e "
.
"left join proj_memb as p on p.pid=e.pid where p.uid='
$uid
'"
);
"left join proj_memb as p on p.pid=e.pid where p.uid='
$uid
' "
.
"order by e.pid,eid"
);
}
if
(
mysql_num_rows
(
$query_result
)
==
0
)
{
USERERROR
(
"There are no experiments to "
.
...
...
www/showproject_list.php3
View file @
49cb9931
...
...
@@ -28,11 +28,11 @@ $isadmin = ISADMIN($uid);
#
if
(
$isadmin
)
{
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT * FROM projects"
);
"SELECT * FROM projects
order by pid
"
);
}
else
{
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT * FROM projects where head_uid='
$uid
'"
);
"SELECT * FROM projects where head_uid='
$uid
'
order by pid
"
);
}
if
(
!
$query_result
)
{
$err
=
mysql_error
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment