C
|
Chris Whitehead 5/30/2024 |
Percy, You can use "break" to get out of the loop, but when you say "reset" what exactly do you mean? If you're just concered with the query within the loop, The result variable $rs1 will be reset becuase it's in the while loop and will be a new result based on the $sql1 query. Are you running 2 DB connections or is that code from somewhere else as it doesn't have the PHPRunner DB API functions in it? Just curious really. |
C
|
cristi 5/30/2024 |
Never use query inside loop....believe me...your sql server will thank you.Use JOIN or MySQL IN and do your thing outside or even without the loop. |
P
|
PK author 5/30/2024 |
Thank you Chris and cristi. Thanks again for your help. |