$sql = "INSERT INTO MyGuests (firstname, lastname, email) VALUES ('John', 'Doe', 'john@example.com');";$sql .= "INSERT INTO MyGuests (firstname, lastname, email) VALUES ('Mary', 'Moe', 'mary@example.com');";$sql .= "INSERT INTO MyGuests (firstname, lastname, email) VALUES ('…
$sql = "INSERT INTO MyGuests (firstname, lastname, email)VALUES ('John', 'Doe', 'john@example.com')";if ($mysqli->query($sql) === TRUE) { //if (mysqli_query($mysqli, $sql)) { //Get ID of The Last Inserted Record $last_id = $mysqli->insert_id; //$last_id = mysqli_insert_id($mysqli); e…
$query = "INSERT INTO 테이블명 SET subject='$subject', content='$content'";