"; } echo " "; $partqry = mysqli_query($db, "select * from parts order by $sort $order"); while ($partline = mysqli_fetch_assoc($partqry)) { if (!$partline['uid']) { $pluidtxt = "none"; } else { $pluidtxt = $partline['uid']; } if ($loggedin) { printf( " ", $partline['partid'], $pluidtxt, $partline['partnum'], $partline['sernum'], $partline['partname'] ); } else { printf( " ", $pluidtxt, $partline['partnum'], $partline['sernum'], $partline['partname'] ); } echo " "; } echo "
$uidtext Part Number Serial Number Part Name
%s %s %s %s
%s %s %s %s
"; echo "

"; banner($print); pageblock("right", "end"); pagetable("end"); framework("end", "", "", $print);