PHPを使用してhtmlフォームからデータベースにデータを送信しようとすると、私はerror unexpected ; in line 6
を取得し続けます。私は正確な原因を見つけることができません。dbエラーにフォームの値を送信
これはsend.phpのコードです:
<?php
//Connecting to sql db.
$connect = mysqli_connect("host","user","password","database");
//Sending form data to sql db.
mysqli_query($connect,"INSERT INTO sw5_green (firstname_r, lastname_r, vid, occupation, address, firstname_s, lastname_s, country, amount, currency)
VALUES ('$_POST[post_firstname_r]', '$_POST[post_lastname_r]', '$_POST[post_vid]', '$_POST[post_occupation]', '$_POST[post_address]', '$_POST[post_firstname_s]', '$_POST[post_lastname_s]', '$_POST[post_country]', '$_POST[post_amount]', '$_POST[post_currency]')";
?>
ありがとう:)それは働いた – Haf833