“Insira dados” Respostas de código

Insira no SQL

INSERT INTO tableName
VALUES (‘anydata’, ‘anydata’, ‘anydata’, ‘anydata’, NULL,
NULL);
naly moslih

Insira dados

<?php
include_once 'database.php';
if(isset($_POST['save']))
{	 
	 $first_name = $_POST['first_name'];
	 $last_name = $_POST['last_name'];
	 $city_name = $_POST['city_name'];
	 $email = $_POST['email'];
	 $sql = "INSERT INTO employee (first_name,last_name,city_name,email)
	 VALUES ('$first_name','$last_name','$city_name','$email')";
	 if (mysqli_query($conn, $sql)) {
		echo "New record created successfully !";
	 } else {
		echo "Error: " . $sql . "
" . mysqli_error($conn);
	 }
	 mysqli_close($conn);
}
?>
Bayscode

insira dentro de

Connect.UpdateQuery("insert into carte values ("+USER_cartenum.Text+", '"+user_RIB.Text+"', '"+USER_dateexpiration.Text+"')", db);
            Connect.UpdateQuery("insert into Account values ("+USER_nacc.Text+", "+USER_balance.Text+", 5, "+ USER_cartenum.Text + ")", db);
        
Witty Warbler

Insira dados

INSERT INTO table (a, b, c) VALUES (1,2,3)

INSERT INTO table SET a=1, b=2, c=3
Silly Swiftlet

Respostas semelhantes a “Insira dados”

Perguntas semelhantes a “Insira dados”

Mais respostas relacionadas para “Insira dados” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código