<form action='http://site.ru/testpost.php' method='POST'>
<select name='test[xx]'>
<option value='1'>1
<option value='2'>2
</select>
<select name='test[yy]'>
<option value='1'>1
<option value='2'>2
</select>
<input type='submit'>
</form>
<?php
print_r($_POST);
?>
Array ( [test] => Array ( [xx] => 1 [yy] => 1 ) )
mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given
Возвращает FALSE в случае неудачи. В случае успешного выполнения запросов SELECT, SHOW, DESCRIBE или EXPLAIN mysqli_query() вернет объект mysqli_result. Для остальных успешных запросов mysqli_query() вернет TRUE.
$stmt = mysqli_prepare($connect, "INSERT INTO *** (fio,email,age,anw1,anw2,frequency) VALUES (?, ?, ?, ?, ?, ?)");
mysqli_stmt_bind_param($stmt, "ssssss", $fio, $email, $age, $anw1, $anw2, $frequency);
mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);