Hello Inserter
real_escape_string($first);
$last = $link->real_escape_string($last);
//build the insert query
$query = "INSERT INTO Students (First,Last) VALUES('".$first."','".$last."')";
# echo "
".$query."
";
$result = $link->query($query);
//report any errors if the query went poorly
if(!$result) {
echo "
bad query
";
echo "Failed: " . $link->errno . " " . $link->error . "";
}
else {
echo 'Inserted Student with First and last are: ' . $first . ' .. ' . $last;
}
//and here the students php saves us work again
echo '';
echo '
The new students table:
';
include 'students.php';
$link->close();
?>
Reset the Whole DB
Display All
List Course
Forms for Inserting New Data