topekone Posted May 7, 2013 Report Share Posted May 7, 2013 Bueno, tengo la siguiente consulta de mysql en un php: function checkPos($inID) { global $sqlServ; $sqlCmd="SELECT pos,vnum FROM player.item WHERE owner_id='".$inID."' AND window='SAFEBOX'"; $sqlQry=mysql_query($sqlCmd,$sqlServ); Necesito una consulta, que me compare la columna owner_id, de la tabla item, que es de la base player, con la columna, login, de la tabla y base account. Se trata para un script crea item, que me pide la ID de la cuenta (el numerito), y lo que me interesa que me pida es el nombre de usuario. Gracias Quote Link to comment Share on other sites More sharing options...
TheSanto Posted May 7, 2013 Report Share Posted May 7, 2013 si me pasas el archivo completo , seria más facil. Quote Link to comment Share on other sites More sharing options...
topekone Posted May 7, 2013 Author Report Share Posted May 7, 2013 Aquí te lo dejo adjunto Debes iniciar sesión para ver el contenido del enlace en esta publicación. Quote Link to comment Share on other sites More sharing options...
RafaVK Posted March 30, 2014 Report Share Posted March 30, 2014 Aquí esta tu consulta SELECT i.pos AS PosicionItem, i.vnum AS VnumItem, a.login AS LoginCuentaFROM player.item AS i, account.account AS aWHERE i.owner_id = a.idAND a.login = 'NombreUsuario'AND i.window = 'SAFEBOX' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.