I'm not sure if the problem is skipping some values or setting them. This answer can help in the first case.

If you just want to skip one value, next code shows two possibilities: 


\stepcounter outside the box or 
step and label as tcolorbox option. 


If you need to jump more than one value, use \addtocounter before the box.

Remember that the new value will be the base for following boxes.

\documentclass{memoir}
\usepackage[breakable]{tcolorbox}
\newtcolorbox[use counter=table,number within=chapter]{MijnOtherBox}[2][]
    {breakable, coltitle=blue!20!black, colback=black!1!white, 
    colframe=black!10!white, title={Box~\thetcbcounter: #2}, #1}

\begin{document}
\begin{MijnOtherBox}[label=Boxone1]{Title for the box}
I want this box to be labelled with number 3.1 instead of \ref{Boxone1}
\end{MijnOtherBox}

\stepcounter{table}
\begin{MijnOtherBox}[label=Boxone2]{Title for the box}
I want this box to be labelled with number 3.1 instead of \ref{Boxone2}
\end{MijnOtherBox}

\begin{MijnOtherBox}[step and label={table}{Boxone3}]{Title for the box}
I want this box to be labelled with number 3.1 instead of \ref{Boxone3}
\end{MijnOtherBox}

\addtocounter{table}{3}
\begin{MijnOtherBox}[label=Boxone4]{Title for the box}
I want this box to be labelled with number 3.1 instead of \ref{Boxone4}
\end{MijnOtherBox}

\end{document}




Tcolorbox: force labelling to take on specific number
don't know if I'm missing any syntax:

for($i=1; $i&lt;9; $i++)
{
    if($weekInfo == "week". $i)
    {
        //echo "d".$i;
        $Query="UPDATE databaseName SET 'd'.$i='" .addslashes($d1). "',weekInfo='" .addslashes($weekInfo). "' WHERE uid='".addslashes($uid)."'";
        $result = mysql_query($Query);
    }
}

