Posts: 715
Threads: 47
Joined: Mar 2011
Reputation:
0
06.07.2011, 15:17
(
Последний раз редактировалось Donya; 06.07.2011 в 18:11.
)
wait! i have another quick question, how would i make it not select 2 same houseid's in the same query? if it can't be done in the same query.. i'll do it the longer way then
Posts: 6,129
Threads: 36
Joined: Jan 2009
Have you tried changing the limit to 5 instead of 1? I'd have assumed that would've been the most obvious way.
Posts: 715
Threads: 47
Joined: Mar 2011
Reputation:
0
oh yea o.o, so then i would have to split it with sscanf?..right
Posts: 6,129
Threads: 36
Joined: Jan 2009
pawn Код:
new szLine[120]; // though you'll probably need a ridiculous size for the line
while(mysql_retrieve_row_format(szLine)) {
// do your magic with sscanf here
}
while will execute for every result it retrieves, so 5 if you limit your query to 5.
Posts: 715
Threads: 47
Joined: Mar 2011
Reputation:
0
yes, the result is free'd after the print.
edit: wait! i have another quick question, how would i make it not select 2 same houseid's in the same query? if it can't be done in the same query.. i'll do it the longer way then