Each time I run the the SQL statement:
SELECT * FROM tbl_accident WHERE progress = 'on hire' AND progress = 'vd'
But it returns an error:
Notice: Undefined offset: 2 in C:\xampp\htdocs\newclaim\cases.php on line 139
Notice: Undefined offset: 1 in C:\xampp\htdocs\newclaim\cases.php on line 139
Alternatively when I run:
SELECT * FROM tbl_accident WHERE progress = 'on hire';
or
SELECT * FROM tbl_accident WHERE progress = 'vd';
There is no problem. What am I doing wrong? The code at line 138-140 reads:
<td><?php $caseOpen = explode("/", $row_cases['caseOpen']);
$caseOpen = $caseOpen[2].'/'.$caseOpen[1].'/'.$caseOpen[0];
echo $caseOpen;?></td>