wait, scratch all of that, i got it working with the following code:
if($number!=0){
$i = 0;
while($i < $number){
$sku = MYSQL_result($result,$i,"sku");
$skushort = substr($sku, "0","7");
echo "<option value=\"$skushort\">" . MYSQL_result($result,$i,"prodname") . "</option>\n";
$i = $i + 1 ;
}
}
but, i dont want to use that, figured out this is what i need to do instead:
lets say $bob = APC-100B or $bob might be BELK-100A
i want to remove AT THE END any character that is not a number, is this possible and how? thanks again.