Jump to content

Bio Update


Xtremer360

Recommended Posts

I'm trying to make sure if this block of code makes sense to everyone and if not what am I doing wrong?

 

if (isset($_POST['editbio'])) {
    $defaultCharID = (int)$_POST['defaultCharID'];
    
    foreach($_POST as $fieldID => $value) {
        if($bioFieldID != "submitBio" || "defaultCharID") {
            $query = "UPDATE `fieldContents` SET `content` = '".$value."', `fieldID` = '".$fieldID."' WHERE `characterID` = '".$defaultCharID."'";
            mysqli_query($dbc,$query);
            $result = "good";
        }
    }
}

Link to comment
https://forums.phpfreaks.com/topic/234105-bio-update/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.