$result = mysql_query("SELECT max(Cardex_ID) FROM cardex WHERE Onderdeel_ID=$Onderdeel_ID"); if (!$result) { die('无法查询:' . mysql_error()); }
$Cardex_ID = mysql_result($result, 0, 'Cardex_ID');
echo $Cardex_ID;
mysql_query("UPDATE cardex SET PADate=$PAdate, PAhours=$PAhours, PAcycles=$PAcycles, PAlanding=$PAlanding WHERE Cardex_ID=$Cardex_ID");