Assuming MySQL here...
<?php
$query = "select username from usertable where email = '$users_email'";
$result = mysql_query($query);
$user = mysql_result($result,0,"email");
echo("$user");
?>
Other things assumed:
1) you've already connected to your db.
2) you won't copy my sql statement verbatim (ie. change it to work with your tables/field names)
3) in your db, the "email" field is unique and thus will never belong to more than one record.
--Ryan