Greaser9780 Posted March 3, 2007 Share Posted March 3, 2007 I am wondering how to go about this in PHP. I need to write a script that constantly detects which teams turn it is. Then if they have preselected players for their team it will update the db the second it becomes their turn. Everytime a teams selection is made it has to check for this and either update or exit. The problem is, if it updates, it automatically needs to run again because it was just updated. Not lookin fo rcode here just suggestion on how to make it happen. I thought of a CRON job but that will not be automatic as I can only run a CRON every minute. This is how I determine turn as of now. In the teams table I have a row labelled activate every time this team picks a player activate is incremented. So I run a query to return a list of teams ordered by activate ASC then by teamid ASC. I am not sure if this is even possible with only PHP. Quote Link to comment https://forums.phpfreaks.com/topic/40967-automatically-determine-turn-and-proceed-accordingly/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.