I need to say something like the following, not sure how to do it though:

PHP Code:
<?php 
mysql_query 
(update table set lockedstatus='LOCKED' where username="all usersnames located in table");
?>