I am new to php. I am trying to run a loop 5 times. Each time the loop runs I need to run a batch file and test the value of a query. If the query is > 0 exit the loop. Otherwise run a different batch file and continue.
Run an exec(batchfile)
SELECT COUNT(item_code) AS ItemCount
ItemCount > 0
yes - exit loop and continue with code
Repeat up to 5 times
If after 5 times, exit loop and run exec(RunRefresh2.bat)
Continue wtih code
I don't know which type of loop to run the necessary syntax. Can anyone help?