This is a discussion on "changing vaules in tables" within the Databases section. This forum, and the thread "changing vaules in tables are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
changing vaules in tables
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
changing vaules in tables
hey guys, i need to be able to change a specific value in a table: there are three values in a row in this table, NAME, PASSWORD, and BOOLY. i want to be able to toggle BOOLY for when the person is logged on or not, so change that value to 0 when they are not logged on, and 1 when they are. i have all the rest of the code done, just this part is stumping me. i tried fetching the array of this row and saying "$result['BOOLY'] = "1" " and so forth, but that didnt change it in the database for some reason. thnaks guys
|
|
|
|
|||
|
Re: changing vaules in tables
does nobody know or is this impossible and no one wants to tell me? thx
|
|
|||
|
Re: changing vaules in tables
Yeah this is definitely possible
Monie's Tips: Assuming you have a Login-Verify-Success method of doing your login page... So, in your verify page, you should have some kind of redirect the user to the main page , right? Ok, right before the redirect code, you need to execute some sql statement that will UPDATE your 'BOOLY' field and set it to 1. When you logging out, you will also need to execute some sql statement that will UPDATE your 'BOOLY' field and set it to 0. MySQL Sample Statement:
Could you post in your verify.php page as well as your logout.php page? Cheers...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Mar 18th, 2008 at 11:59. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing these Tables | Aerdan | Web Page Design | 8 | Nov 24th, 2007 18:44 |
| Changing CSS with PHP | Emzi | PHP Forum | 7 | Oct 11th, 2007 23:24 |
| changing pic's | bruno89 | Web Page Design | 4 | Sep 8th, 2006 15:22 |
| changing %20 in URL using PHP | JamieH | PHP Forum | 1 | Dec 8th, 2005 13:52 |
| why are my fonts changing? | Val J | Flash & Multimedia Forum | 0 | Sep 1st, 2005 20:29 |