query($query)) { echo "\n"; echo "\n"; /* Fetch results */ while ( $row = $result->fetch_assoc() ){ echo "\n"; } echo "
SNumSupplier NameCityStatus
" . $row['snum'] . "" . $row['sname'] . "" . $row['scity'] . "" . $row['status'] . "
\n"; /* Destroy the result set and free the memory used for it */ $result->close(); } $mysqli->close(); ?>