hi,
<?php
$liste = mysql_query("SELECT A1_ALL FROM haupt WHERE (A1_ALL LIKE '$schluessel%')");
while ($treffer = mysql_fetch_array($liste))
{
preg_match("/^([0-9]+)([a-zA-z]+)([0-9]+)$/", $treffer['A1_ALL'], $matches);
if(intval($matches[count($matches) - 1]) > $speicherWert){
$speicherWert = intval($matches[count($matches) - 1]);
}
}
?>
ahoi, andi