Notice: Undefined index: appointDate
<p>Getting Undefined index error on <code>appointDate</code> when running the code shown below:</p>

<pre><code>$searchData = mysqli_query($connectme, "SELECT * FROM registration WHERE caseNo = '".$caseNo."'");
$row = mysqli_fetch_array($searchData);
//Fix date for entry to form to day,month,year for display purposes only
$dateFixYear = substr($row['appointDate'], 0,4);
$dateFixMonth = substr($row['appointDate'], 5,2);
$dateFixDay = substr($row['appointDate'], 8,2);
$dateFixed = $dateFixDay . "/" . $dateFixMonth . "/" . $dateFixYear;
$row['appointDate'] = $dateFixed;
</code></pre>

<p>I would like to find the error in the code rather than ignoring it using <code>-</code></p>

<pre><code>error_reporting(E_ERROR | E_PARSE);
</code></pre>

<p>Thanks in advance.</p>