# Changing Info with a Button

**URL:** <https://forum.kirupa.com/t/changing-info-with-a-button/290523>\
**Category:** programming\
**Created:** [June 16, 2009, 4:23am UTC](https://forum.kirupa.com/t/changing-info-with-a-button/290523 "2009-06-16T04:23:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drummer392](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@drummer392](https://forum.kirupa.com/u/drummer392)\
**Post date:** [June 16, 2009, 4:23am UTC](https://forum.kirupa.com/t/changing-info-with-a-button/290523/1 "2009-06-16T04:23:51Z")

</div>

I have a user database with a table called users and I have a field called is\_admin. The values I put in that field are 0=basic or 1=admin. I would like to be able for an admin to click a button next to a basic user’s name and have them promoted to an admin by changing the 0 in their is\_admin field to a 1. How can I do this?

Thanks!

Brandon
