Aside from not using mysql_ functions, it seems all you need are some backticks. I would also recommend you explicitly define the column name before hand. You should turn on error reporting as it will help you figure out where you issues are coming from. At the least, echo $Query;.

for($i=1; $i&lt;9; $i++) {
    if($weekInfo == "week". $i) {
        $columnName = 'd' . $i;

        $Query="UPDATE db.table SET `$columnName` = '" .addslashes($d1). "', weekInfo='" .addslashes($weekInfo). "' WHERE uid='".addslashes($uid)."'";
        $result = mysql_query($Query);
    }
}


php multiple database field update
Is it possible to achieve citations that are superscript and don't have brackets using the revtex4-1 document class?

An example of how they should look: 


  Afirmation3,4

