mysqli_query() expects parameter 3 to be long
<p>I want to update mysql table with query but it shows </p>

<blockquote>
  <p>error - mysqli_query() expects parameter 3 to be long</p>
</blockquote>

<pre><code>if($money &gt;= 400) {

$query = "UPDATE users SET spam = spam + 1, money = money - 400 WHERE user_id=".$_SESSION['user'];
$query = "UPDATE users SET score = score + 2500 WHERE user_id=".$_SESSION['user'];

$update = mysqli_query($conn,$query,$query);
echo 'Spam.exe Upgraded for $400!!';

} else {

// Prints error
echo 'Not enough Money!!';

}
</code></pre>