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; } else if (substr_count($strCommandLine,"ARG7") != 0) { $intCount = 7; } else if (substr_count($strCommandLine,"ARG6") != 0) { $intCount = 6; } else if (substr_count($strCommandLine,"ARG5") != 0) { $intCount = 5; } else if (substr_count($strCommandLine,"ARG4") != 0) { $intCount = 4; } else if (substr_count($strCommandLine,"ARG3") != 0) { $intCount = 3; } else if (substr_count($strCommandLine,"ARG2") != 0) { $intCount = 2; } else if (substr_count($strCommandLine,"ARG1") != 0) { $intCount = 1; } else { $intCount = 0; } } } ?>