Splitting MySQL results.
#3

Quote:
Originally Posted by AndreT
Посмотреть сообщение
The break statement in the loop cancels it. Simple as that.

Also, why are you looping through the vehicles? Loop through the results that your query gives you.
That loop assigns the misc variables into the same ID of array as the VehID, that's basically it. The break stops it from adding it into EVERY vehicle that isn't assigned.
Reply


Messages In This Thread
Splitting MySQL results. - by vIBIENNYx - 24.01.2013, 10:22
Re: Splitting MySQL results. - by AndreT - 24.01.2013, 10:29
Re: Splitting MySQL results. - by vIBIENNYx - 24.01.2013, 10:33

Forum Jump:


Users browsing this thread: 5 Guest(s)