title: PHP: Can't edit data from MySQL database
body: <p>I'm going to build a mini system with login,add,edit,delete function. Login, add and delete was functioning without a problem but not on Edit. This is my update.php code. FYI, this code doesn't have any error displayed. </p>
  
  <pre><code>&lt;?php
  ini_set('display_errors', '1');
  error_reporting(E_ALL ^ E_NOTICE);
  require_once "conn.php";
  
  $conn=connect();
  $db=connectdb();
  
  $ic= "";
  $parcelno = "";
  $items = "";
  if(isset($_REQUEST['ic'])){ $ic= $_REQUEST['ic']; }
  if(isset($_REQUEST['parcel'])){ $parcel = $_REQUEST['parcel']; }
  if(isset($_REQUEST['items'])){ $items = $_REQUEST['items']; }
  
  
  mysqli_select_db($conn, $db) or die (mysqli_error($conn)."\n");
  $sql="UPDATE parcel SET parcelno='".$parcel."', items='".$items."' where ic='".$ic."'";
  $result=mysqli_query($conn,$sql) or die(mysqli_error($conn)."\n");
  
  }
  </code></pre>