ID_OBJ USUARIO ID_GAME
1 SRTP 2
2 SRTP 2
5 SRTP 3
8 TEST 2
Hice algo haci
Código
$sl3 = "SELECT ID_OBJ FROM buy_OBJ WHERE USUARIO='$userman' AND ID_GAME='3'"; $sl4 = $link->query($sl3); $row2= $sl4->fetch_assoc() if($row2['ID_OBJ'] == "1"){ echo "OBJ 1"; } if($row2['ID_OBJ'] == "2"){ echo "OBJ 2"; }