Notice: Undefined index: in C:\xampp\htdocs\asset-management\reports\querys\by-status.php on line 20
$query = "SELECT ".$columns." Item FROM tblitem WHERE Status=".$_POST['status']; $result = mysql_query($query); $tblCol = explode(",", $columns); echo "<table>"; echo "<th>Item</th>"; foreach ($tblCol as $ColName){ echo "<th>".$ColName."</th>"; } while($row = mysql_fetch_array($result)){ echo "<tr>"; echo "<td>". $row['Item'] ."</td>"; foreach ($tblCol as $columnName){ echo "<td>". $row[$columnName] ."</td>"; } echo "</tr>"; } echo "</table>";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)