mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in
<p>.../general.php on line 10</p>

<p>Hello, this is my error, but only occurs when I upload my web to a host, in the localhost run well.</p>

<p>the (return mysqli_real_esc..)line is the "line 10".</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>$conncet = mysqli_connect('xxx','xxx','xxx','xxx');
function array_sanitize(&amp;$datos) {
  global $connect;
  $datos = mysqli_real_escape_string($connect,$datos);
}</code></pre>
</div>
</div>
</p>

<p>thanks for your time!!</p>