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
well, I don't see an obvious error, and I can't follow your 'see the update right away' description, but I'd start this differently and remove the duplication. [code] function levelwith3up($id,$threeup1db,$threeup2db,$threeup3db) { if (($threeup1db == $threeup2db && $threeup1db == $threeup3db) && ($threeup1db >=0 && $threeup1db <= 4) { $new_val = intval($threeup1db) + 1; $id = mysql_real_escape_string($id); //seriously, does PHP still not have a template based sql engine???! mysql_query("UPDATE members SET level = $new_val WHERE ID = '$id'"); } else { error_occurred... } } [/code] ->Tyberius Prime
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