This question already has an answer here:
Okay guys this is kinda strange, because the code in a way does work, but it seems like he ignores the code above and jumps directly to the msqli_query line which doens’t seem to work either. Is there something wrong with my code? oh and btw ”test34” is the database I want to access through this php script.
<?php $db = mysqli_connect('localhost', 'test34') or die('u failed'); $sql = "INSERT INTO test34 (test1, test2, test3, test4)"; $ergebnis = mysqli_query($db, $sql) or die('u failed again'); mysqli_close($db); ?>