query("SELECT id,name FROM yaptc_punchtypes"); //get all records from add_delete_record table while($row = $results->fetch_assoc()) { echo '
'; echo '
'; echo '
'; echo '
'; echo $row["name"].'
'; } //close db connection $mysqli->close(); ?>
Add record