while($row = mysql_fetch_row($sql))
{
if($row["id"] == '1' or $row["id"] == '2' or $row["id"] == '3' or $row["id"] == '4') {
$row[0] = $S_1;
}
$pdf->Row(array($row[0],$row[1],$row[2],$row[3],$row[4],$row[5]));
}
$pdf->Row(array($row[0],$row[1],$row[2],$row[3],$row[4],$row[5]));
$pdf->Row($row);
if($row["id"] == '1' or $row["id"] == '2' or $row["id"] == '3' or $row["id"] == '4') {
if(in_array($row["id"], ['1', '2', '3', '4'])) {