title: Parse error: syntax error, unexpected '===' (T_IS_IDENTICAL)
body: <p><a href="https://i.stack.imgur.com/bJx8s.png" rel="nofollow noreferrer">enter image description here</a>error: Parse error: syntax error, unexpected '===' (T_IS_IDENTICAL) in C:\xampp\htdocs\new\add.php on line 7</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>&lt;?php
  
  require_once('db.php');
  
  if (
  !empty($_POST['name']) &amp;&amp;!empty($_POST['alias']) &amp;&amp;!empty($_POST['date']) &amp;&amp;!empty($_POST['address']) &amp;&amp;!empty($_POST['educational']) &amp;&amp;!empty($_POST['father']) &amp;&amp;!empty($_POST['mother']) &amp;&amp;!empty($_POST['brother']) &amp;&amp;!empty($_POST['sister']) &amp;&amp;!empty($_POST['spouse']) &amp;&amp;!empty($_POST['children']) &amp;&amp;!empty($_POST['training']) &amp;&amp;!empty($_POST['employment']) &amp;&amp;!empty($_POST['organization']) &amp;&amp;!empty($_POST['affiliation']) &amp;&amp;!empty($_POST['criminal']) &amp;&amp;!empty($_POST['activities']) &amp;&amp;
  is_array($_POST['name']) &amp;&amp; is_array($_POST['alias']) &amp;&amp; is_array($_POST['date']) &amp;&amp; is_array($_POST['address']) &amp;&amp; is_array($_POST['educational']) &amp;&amp; is_array($_POST['father']) &amp;&amp; is_array($_POST['mother']) &amp;&amp; is_array($_POST['brother']) &amp;&amp; is_array($_POST['sister']) &amp;&amp; is_array($_POST['spouse']) &amp;&amp; is_array($_POST['children']) &amp;&amp; is_array($_POST['training']) &amp;&amp; is_array($_POST['employment']) &amp;&amp; is_array($_POST['organization']) &amp;&amp; is_array($_POST['affiliation']) &amp;&amp; is_array($_POST['criminal']) &amp;&amp; is_array($_POST['activities']) &amp;&amp;
  count($_POST['name']) === count($_POST['alias']) === count($_POST['date']) === count($_POST['address']) === count($_POST['educational']) === count($_POST['father']) === count($_POST['mother']) === count($_POST['brother']) === count($_POST['sister']) === count($_POST['spouse']) === count($_POST['children']) === count($_POST['training']) === count($_POST['employment']) === count($_POST['organization']) === count($_POST['affiliation']) === count($_POST['criminal']) === count($_POST['activities'])
  ) {
  
    $name_array = $_POST['name'];
    $alias_array = $_POST['alias'];
    $date_array = $_POST['date'];
    $address_array = $_POST['address'];
    $educational_array = $_POST['educational'];
    $father_array = $_POST['father'];
    $mother_array = $_POST['mother'];
    $brother_array = $_POST['brother'];
    $sister_array = $_POST['sister'];
    $spouse_array = $_POST['spouse'];
    $children_array = $_POST['children'];
    $training_array = $_POST['training'];
    $employment_array = $_POST['employment'];
    $organization_array = $_POST['organization'];
    $affiliation_array = $_POST['affiliation'];
    $criminal_array = $_POST['criminal'];
    $activities_array = $_POST['activities'];
  
    for ($i = 0; $i &lt; count($name_array); $i++) {
  
      $name = mysql_real_escape_string($name_array[$i]);
      $alias = mysql_real_escape_string($alias_array[$i]);
      $date = mysql_real_escape_string($date_array[$i]);
      $address = mysql_real_escape_string($address_array[$i]);
      $educational = mysql_real_escape_string($educational_array[$i]);
      $father = mysql_real_escape_string($father_array[$i]);
      $mother = mysql_real_escape_string($mother_array[$i]);
      $brother = mysql_real_escape_string($brother_array[$i]);
      $sister = mysql_real_escape_string($sister_array[$i]);
      $spouse = mysql_real_escape_string($spouse_array[$i]);
      $children = mysql_real_escape_string($children_array[$i]);
      $training = mysql_real_escape_string($training_array[$i]);
      $employment = mysql_real_escape_string($employment_array[$i]);
      $organization = mysql_real_escape_string($organization_array[$i]);
      $affiliation = mysql_real_escape_string($affiliation_array[$i]);
      $criminal = mysql_real_escape_string($criminal_array[$i]);
      $activities = mysql_real_escape_string($activities_array[$i]);
  
      $conn-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
      mysql_query("INSERT INTO student (name, alias, date, address, educational, father, mother, brother, sister, spouse, children, training, employment, organization, affiliation, criminal, activities) 
                  VALUES ('$name', '$alias', '$date', '$address', '$educational', '$father', '$mother', '$brother', '$sister', '$spouse', '$children', '$training', '$employment', '$organization', '$affiliation', '$criminal', '$activities')");
    }
  }
  
  $conn-&gt;exec($sql);
  echo "&lt;script&gt;alert('Account successfully added!'); window.location='pis.php'&lt;/script&gt;";
  ?&gt;
  </code></pre>