OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Stupid functions...
This page's ID:
31737
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I have been fighting this for hours it seems... I have this function: [code] function levelwith3up($id,$threeup1db,$threeup2db,$threeup3db) { if($threeup1db == 0 && $threeup2db == 0 && $threeup3db == 0) mysql_query("UPDATE members SET level = 1 WHERE ID = '$id'"); if($threeup1db == 1 && $threeup2db == 1 && $threeup3db == 1) mysql_query("UPDATE members SET level = 2 WHERE ID = '$id'"); if($threeup1db == 2 && $threeup2db == 2 && $threeup3db == 2) mysql_query("UPDATE members SET level = 3 WHERE ID = '$id'"); if($threeup1db == 3 && $threeup2db == 3 && $threeup3db == 3) mysql_query("UPDATE members SET level = 4 WHERE ID = '$id'"); if($threeup1db == 4 && $threeup2db == 4 && $threeup3db == 4) mysql_query("UPDATE members SET level = 5 WHERE ID = '$id'"); } [/code] It has an odd problem... If the person is level 0 or 1, the update happens right away. However, if they hit level 3, I have to refresh the list to see the update. Am I missing something here? Am I using the right method for this? I'm at a loss...
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail