mxyi Posted July 10, 2010 Share Posted July 10, 2010 hey guys, i added a username color system wich allows donators to chose a name colour.. i need someone to make a code like on loggedin.php so when they log in it checks if theyre a donator if not it runs a query so it sets theire name color to NULL on the mysql tables if theire non-donator because some non donators still have theire color from when they set it when they were a donator or could i put this in cron_minute.php or is there a diffrent way? thanks :) Quote Link to comment Share on other sites More sharing options...
Analog Posted July 10, 2010 Share Posted July 10, 2010 if(!ir['ddays']) { mysql_query("UPDATE `users` SET `color_filed` = 'defaultcolor' WHERE `userid` = $userid"); } Untested, will need to change variable/table/fields accordingly Just the general idea to get you going... Quote Link to comment 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.