Hi, i am new with PHP and MySQL and try to learn.I am making small registration and activation script with two tables in database.Entering data from online form is fine, also after verification muving data from fitst table to second is fine.Part of code is:
$row = $result->fetch_object();
$username = $row->username;
$password = $row->password;
$email = $row->email;
and entering part is:
$result1 = $conn->query("insert into user values
('$username', '$password', '$email')"
;
Problem comes when i make one more colom in second table:
user_id, int, 11, not null, unsigned, auto_increment, primary key
In this case data can't enter second table.Why???No eror reports.
Thanks in advance(i am using mysqli).