Jiraiya Posted December 13, 2008 Share Posted December 13, 2008 im confused about how to write the script so that it takes a logged in users data from a table and updates one variable if another variable meets a certain requirement, i have the code below but i want to make sure its done correctly so i dont ruin my table UPDATE users SET column1=value, column2=value2,... WHERE some_column=some_value if($skill >= 5000000) { $rank = Akatsuki; Link to comment https://forums.phpfreaks.com/topic/136821-updating-table-help/ Share on other sites More sharing options...
peranha Posted December 13, 2008 Share Posted December 13, 2008 yeah that looks correct, you can always back up your table as well.\ Make sure you have the quotes, and the ; in there as well. Link to comment https://forums.phpfreaks.com/topic/136821-updating-table-help/#findComment-714556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.