Hello,

I really need help, i don't understand where the error stays, i'll post the part where the errors seems to be:

			case 'USERNAME' :
				$result = (string) $preg_replace( '/[x00-x1Fx7F<>"'%', '', $source );
				break;

		default :
			// Check for static usage and assign $filter the proper variable
			if (is_object($this) && get_class($this) == 'JFilterInput') {
				$filter = $this;
			} else {
				$filter =& JFilterInput::getInstance();
			}
			// Are we dealing with an array?
			if (is_array($source)) {
				foreach ($source as $key => $value)
				{
					// filter element for XSS and other 'bad' code etc.
					if (is_string($value)) {
						$source[$key] = $filter->_remove($filter->_decode($value));
					}
				}
				$result = $source;
			} else {
				// Or a string?
				if (is_string($source) && !empty ($source)) {
					// filter source for XSS and other 'bad' code etc.
					$result = $filter->_remove($filter->_decode($source));
				} else {
					// Not an array or string.. return the passed parameter
					$result = $source;
				}
			}
			break;
	}
	return $result;
}

/**
 * Function to determine if contents of an attribute is safe
 *
 * @static
 * @param	array	$attrSubSet	A 2 element array for attributes name,value
 * @return	boolean True if bad code is detected
 * @since	1.5
 */

Thank you!

    The error message should also say what line number the error is on.

      there is no error message, it is only a problem with the GET STRING on the second page.
      It puts the nationalDrugCode into the string in the url which is right but then it gets added to the SQL which is weird. I can see it echoing on the page. So actually that makes sense it is the last nationalDrugCode number for the first page. It gets carried over to the url. It shouldn't be like that. It should only have the ndc if that was a field searched on in the search form. I think maybe I should not search on NationalDrug Code because it is one field. The others are rows. I think that must be the error.

        🙁 and should i do?? because i am really new in this and i have so many things to learn yet.

        Tahnk you!

          if you are new maybe you should post questions not replies. Actually you made me think up the answer myself.🙂🙂

            I am trying to mark this thread resolved and it won't let me. I don't know what the issue is but it has been resolved!

              jrough;10958746 wrote:

              there is no error message, it is only a problem with the GET STRING on the second page.
              It puts the nationalDrugCode into the string in the url which is right but then it gets added to the SQL which is weird. I can see it echoing on the page. So actually that makes sense it is the last nationalDrugCode number for the first page. It gets carried over to the url. It shouldn't be like that. It should only have the ndc if that was a field searched on in the search form. I think maybe I should not search on NationalDrug Code because it is one field. The others are rows. I think that must be the error.

              uhmmm??? that means: confused:;
              Thank you

                This line has a syntax error:

                                $result = (string) $preg_replace( '/[x00-x1Fx7F<>"'&#37;', '', $source ); 

                You need to put a backslash in front of the 2nd single quote.

                  Not to mention the fact that the variable $preg_replace probably isn't defined anywhere...

                    Write a Reply...