getFieldData("SELECT command_line FROM tbl_command WHERE id='". filter_var($_GET['cname'], FILTER_SANITIZE_NUMBER_INT)."'"); if (($strResult != false) && ($strResult != '')) { $strCommandLine = $strResult; $intCount = substr_count($strCommandLine, 'ARG'); if (substr_count($strCommandLine, 'ARG8') != 0) { $intCount = 8; } elseif (substr_count($strCommandLine, 'ARG7') != 0) { $intCount = 7; } elseif (substr_count($strCommandLine, 'ARG6') != 0) { $intCount = 6; } elseif (substr_count($strCommandLine, 'ARG5') != 0) { $intCount = 5; } elseif (substr_count($strCommandLine, 'ARG4') != 0) { $intCount = 4; } elseif (substr_count($strCommandLine, 'ARG3') != 0) { $intCount = 3; } elseif (substr_count($strCommandLine, 'ARG2') != 0) { $intCount = 2; } elseif (substr_count($strCommandLine, 'ARG1') != 0) { $intCount = 1; } else { $intCount = 0; } } } ?>