The $id
variable is not declared. If PRIMARY_KEY
and AUTO_INCREMENT
, remove the variable.
$result = mysqli_query($con,"insert into Concert (id, artist, date, time, place, price, open) VALUES('$id','$artist','$date','$time','$place','$price','$open')");