Location: PHPKode > projects > RadMacLab > radmaclab/admin/list_printers.php
<?php
$navloc = '';
$title = 'List Printers';

include ('includes/func_vars_inc.php');
include ('includes/auth_check.php');
include ('templates/template_top.inc.php');

if (isset($_GET['msg'])){
	echo "<p style=\"color:red;\" >".$_GET['msg']."</p>";
}
?>


<table cellspacing="0" cellpadding="2" border="0">
	<tr class="headrow">
		<td>Printer Name</td>
		<td>Assignment</td>
	</tr>
	
	<?php
	$query = "SELECT * FROM `printers`";
	$result = dbase_query($query);
	
	for ($i = 0; $i < mysql_num_rows($result); $i++){
		$row = mysql_fetch_array($result);
	


		$mymod = $i % 2;


		?>
		<tr class="row<?php echo $mymod; ?>">
			<td><?php echo stripslashes($row['printer_name']); ?></td>
			<td><?php echo stripslashes($row['assignment']); ?></td>
		</tr>
	<?php
	}
	
	
	?>
	
	
</table>


<?php
include ('templates/template_bottom.inc.php');
?>
Return current item: RadMacLab