I've got a few custom user data fields that require user data from a custom database table.
I've tried:
global $wpdb;
$table_name = $wpdb->prefix . "wplusersprofiles";
$user = $wpdb->get_results( "SELECT * FROM $table_name" );
and calling the data like:
<tr>
<th><label for="gender"><?php _e("Gender"); ?></label></th>
<td>
<input type="text" name="gender" id="gender" value="<?php echo $user->gender ?>" class="regular-text" /><br />
</td>
</tr>
But with no success.