[insert_php]
$myuser = get_current_user_id();
$mysteam = 5;

global $wpdb;

$sqlsd = “SELECT steam FROM wp_mysteam WHERE userid = ‘$myuser’ AND steam = ‘$mysteam'”;
$mySteams = $wpdb->get_results($sqlsd);

if ($mySteams == null) { $wpdb->query(“INSERT INTO wp_mysteam ( steam, userid ) VALUES ( $mysteam, $myuser )”); }
[/insert_php]


This content can only be seen by logged in users. LOGIN HERE!