@: thx.. I will then first run the query on sql server to check whether it returns the result finely or not
@: thx 4 your advice, bro
@big.nerd: thx 4 your explanation..
FYI,
I had run the query in SQL and returns 12 rows as below:
MSJ24,BC0
MSJ24,BC1
MSJ24,BC2
MSJ24,BC3
MSJ24,BC4
MSJ24,BC5
MSJ24,BC6
MSJ24,BC7
MSJ24,BC8
MSJ24,BC9
MSJ24,CP1
MSJ24,CP2
I had tried using
while ($rx = mssql_fetch_assoc($rs))
and it returns some output as above..
but it couldn't stop looping.
how can I fix this?