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

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]


Detta innehåll kan endast ses av inloggade användare. LOGGA IN HÄR!