Hi again,
The variables are as said in all previous code samples:
$pos2_value // holds the position
$Source // holds the price info
In the loop in question I narrow down the number of results pos2_value, but I still need to extract the max value among these...
To get the value I like I need to get the max from the price and not it's position.
$mec = $Source[$pos2_value]; // enable the max search to price info
$i=max( $i , $mec); // finding the actual max I like
So far everything is good and the value found is the value I like to get....
Now, I need to get the back to using the position since this essential for the rest of the script...
So I need to equal the found $i with the position...
$new_i = $pos2_value +++ // of the the $i found in the max search... ;
I just feel blank and empty to night, and not able to solve this simple issue...
regs