Hi. I tried this:
$result = $conn->query("SELECT * FROM temp_users WHERE reg_code ='$passkey'");
This works:
if($result->num_rows == 1){
values from print_r($result);
mysqli_result Object ( [current_field] => 0 [field_count] => 11 [lengths] => [num_rows] => 1 [type] => 0 )
but $result->username
where username is a field in the db shows up blank?