session_start(); include "head.inc"; include "common.php"; dbconnect(); if(!$_GET["sort"]) $sql = "select * from items_of_interest order by make ASC"; else { $sql = "select * from items_of_interest where seqno = ".$_GET['sort']." order by make ASC"; $sql2 = "select * from items_of_interest where seqno != ".$_GET['sort']." order by seqno,make ASC"; } $seqsql = "select distinct seqno from items_of_interest order by seqno ASC"; $seqresult = mysql_query($seqsql); $result = mysql_query($sql); $numrows = mysql_num_rows($result); if(isset($sql2)) { $result2 = mysql_query($sql2); $numrows = $numrows+mysql_num_rows($result2); } ?>
::. if($_SESSION['udesig']=="admin") echo("ADMINISTRATOR>>"); else echo("DATA ENTRY OPERATOR>>"); ?>MAIN>>VIEW SPARE PARTS | |||||||||||||
|