Kikisss Posted October 18, 2009 Report Share Posted October 18, 2009 (edited) Kāds varētu palīdzēt izveidod php querry kur no Characters tabulas pēc saņemtā nika dabū charId. Tad pāriet uz tabulu items un pēc iegūtā charId rindā tabulā items ievada datus . Edited October 18, 2009 by Kikisss Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted October 18, 2009 Report Share Posted October 18, 2009 SELECT charID FROM characters WHERE nick = $nick INSERT INTO items (charID, ...) VALUES (charID, ...) Quote Link to comment Share on other sites More sharing options...
Kikisss Posted October 21, 2009 Author Report Share Posted October 21, 2009 SELECT charID FROM characters WHERE nick = $nick INSERT INTO items (charID, ...) VALUES (charID, ...) paldies, paliidzēja, bet problēma ir tāda ka tabulā items charID ir owner_id. kā to dabūt gatavu? Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted October 21, 2009 Report Share Posted October 21, 2009 INSERT INTO items (owner_id, ...) VALUES ($charID, ...) 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.