<li><a href = '#'>View Profile of One Item</a></li><br> </div> <div class = "center1" > <div style="text-align: center"></div> <p style = "text-align:center; font-size: 30px"><b>List of Items in Inventory<b></p> </div> <div class = "center1" style="text-align:center" > <?php include_once "inventory.php"; $obj = new inventory(); $search_text = ""; if (isset($_REQUEST['txtSearch'])) { $search_text = $_REQUEST['txtSearch']; } $obj->search_by_name($search_text); echo "<table border='1'>"; echo "<tr style='background-color:olive; color:white; text-align:center'>\r\n<td>Name of Equipment</td>\r\n<td>Description of Equipments</td>\r\n<td>Equipment ID </td>\r\n<td>Price of Equipment</td>\r\n<td> Options / Delete</td>\r\n</tr>"; $row = $obj->fetch(); $style = ""; $i = 0; while ($row) { if ($i % 2 == 0) { $style = "style='background-color:Khaki'"; } else { $style = ""; } echo "<tr {$style} >"; echo "<td><span class='clickspot' onclick='getDesc({$row['equipment_id']})'>{$row['equipment_name']}<span></td>"; echo "<td>{$row['description']}</td>"; echo "<td>{$row['equipment_id']}</td>";