Ich habe ein kleines Problem Und zwar wollte ich in meine Tabelle paar Datensätze einfügen, der Code stimmt meiner Meinung nach auch soweit:
Code:
<?php require_once "dbconfig.php"; if(isset($_POST["submit"])){ if(!empty($_POST['title']) && !empty($_POST['inhalt'])){ $titel = $_POST['titel']; $inhalt = $_POST['inhalt']; $sql = "INSERT INTO news (titel,inhalt) VALUES ('$titel','$inhalt')"; $result = mysqli_query($conn, $sql) or die(mysqli_error($conn));; } } ?>
Ich bedanke mich schon mal im voraus
Mfg Danonee