var/database/query/q = new("SELECT item_id FROM Player_Inventory WHERE byond_key = ?", byond_key)
var/list/row
if(q.Execute(db))
while(q.NextRow())
row += q.GetRowData()
return row
Problem description:
So I have a database query returning multiple rows of results.
I am them looping through collecting the row data.
In the end I am printing out the results like this:
world << list2params[row] //This is the returned value
I am expecting to see:
item_id=5&item_id=6&item_id=7
What I am seeing is:
item_id=7&item_id=7&item_id=7
This has to be the mistake but I am not getting what I am doing wrong.
row += q.GetRowData()
Can you show the actual query you are performing?