title: Uncaught ArgumentCountError: mysqli_error() expects exactly 1 argument, 0 given
body: <p>I get this error. the thing it should do is update the table in the database and my view order but i only get this error. How do i fix it any idea?</p>
  <blockquote>
  <p>Fatal error: Uncaught ArgumentCountError: mysqli_error() expects
  exactly 1 argument, 0 given in
  C:\xampp\htdocs\final\Admin\edit1.php:108<br>
  Stack trace:<br>
  #0 C:\xampp\htdocs\final\Admin\edit1.php(108): mysqli_error()<br>
  #1 {main}
  thrown in C:\xampp\htdocs\final\Admin\edit1.php on line 108</p>
  </blockquote>
  <p>File name:edit1.php</p>
  <p>My Codes</p>
  <pre><code>&lt;?php $status = &quot;&quot;; if(isset($_POST['new']) &amp;&amp; $_POST['new']==1) { $id=$_REQUEST['id']; $name =$_REQUEST['name']; $email =$_REQUEST['email']; $phone=$_REQUEST['phone']; $address=$_REQUEST['address']; $mode=$_REQUEST['pmode']; $products=$_REQUEST['products']; $amount_paid=$_REQUEST['amount_paid']; $Status=$_REQUEST['Status']; $update=&quot;update orders set name='&quot;.$name.&quot;', email='&quot;.$email.&quot;', phone='&quot;.$phone.&quot;', address='&quot;.$address.&quot;,'pmode='&quot;.$mode.&quot;', products='&quot;.$products.&quot;', amount_paid='&quot;.$amount_paid.&quot;', Status='&quot;.$Status.&quot;' where id='&quot;.$id.&quot;'&quot;; mysqli_query($con, $update) or die(mysqli_error()); $status = &quot;Record Updated Successfully. &lt;/br&gt;&lt;/br&gt;&lt;a href='view1.php'&gt;View Updated Record&lt;/a&gt;&quot;; echo '&lt;p style=&quot;color:#FF0000;&quot;&gt;'.$status.'&lt;/p&gt;'; }else { ?&gt;
  </code></pre>
  <p>My button Codes/placeholder</p>
  <pre><code>&lt;form name=&quot;form&quot; method=&quot;post&quot; action=&quot;&quot;&gt;  &lt;input type=&quot;hidden&quot; name=&quot;new&quot; value=&quot;1&quot; /&gt; &lt;input name=&quot;id&quot; type=&quot;hidden&quot; value=&quot;&lt;?php echo $row['id'];?&gt;&quot; /&gt; &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;name&quot; placeholder=&quot;Enter Name&quot; required value=&quot;&lt;?php echo $row['name'];?&gt;&quot; /&gt;&lt;/p&gt; &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; placeholder=&quot;Enter Email&quot; required value=&quot;&lt;?php echo $row['email'];?&gt;&quot; /&gt;&lt;/p&gt; &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;phone&quot; placeholder=&quot;Enter Phone&quot; required value=&quot;&lt;?php echo $row['phone'];?&gt;&quot; /&gt;&lt;/p&gt; &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;address&quot; placeholder=&quot;Enter Address&quot; required value=&quot;&lt;?php echo $row['address'];?&gt;&quot; /&gt;&lt;/p&gt; &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;pmode&quot; placeholder=&quot;Enter Payment Mode&quot; required value=&quot;&lt;?php echo $row['pmode'];?&gt;&quot; /&gt;&lt;/p&gt; &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;products&quot; placeholder=&quot;Enter products&quot; required value=&quot;&lt;?php echo $row['products'];?&gt;&quot; /&gt;&lt;/p&gt; &lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;amount_paid&quot; placeholder=&quot;Enter Amount Paid&quot; required value=&quot;&lt;?php echo $row['amount_paid'];?&gt;&quot; /&gt;&lt;/p&gt; &lt;p&gt;&lt;select name=&quot;Status&quot; required value=&quot;&lt;?php echo $row['Status'];?&gt;&quot; class=&quot;form-control&quot;&gt;
            &lt;option value=&quot;&quot; selected disabled&gt;-Select Status-&lt;/option&gt;
            &lt;option value=&quot;Incomplete&quot;&gt;Incomplete&lt;/option&gt;
            &lt;option value=&quot;Complete&quot;&gt;Complete&lt;/option&gt;
          &lt;/select&gt; &lt;/p&gt; &lt;p&gt;&lt;input name=&quot;submit&quot; type=&quot;submit&quot; value=&quot;Update&quot; /&gt;&lt;/p&gt; 
  </code></pre>