Heya
Have been trying to get something working for a while now and its not playing ball. I have a mass emailer script, and I want it to show progress of how that campaign is sending once you click send.
Basically want to click go and it will run the script that will loop through and send the emails. Want to also have another query running every 10 seconds or so to see all the emails that have been sent for that batch.
Problem is that when I run both at the same time it wont return the select query until the inserts have finished
Any ideas?
I believe it might have something to do with sessions and 'race conditions'? Basically want to strip it right back to forgetting the emails I have just an insert query and a select query, as each row goes in i want it to show the latest rows in a progress list. Anyone done this?
Have been trying to get something working for a while now and its not playing ball. I have a mass emailer script, and I want it to show progress of how that campaign is sending once you click send.
Basically want to click go and it will run the script that will loop through and send the emails. Want to also have another query running every 10 seconds or so to see all the emails that have been sent for that batch.
Problem is that when I run both at the same time it wont return the select query until the inserts have finished

I believe it might have something to do with sessions and 'race conditions'? Basically want to strip it right back to forgetting the emails I have just an insert query and a select query, as each row goes in i want it to show the latest rows in a progress list. Anyone done this?