var bhobj = $("input[title='编号']");
if (bhobj.val() == "") {
var date = new Date();
var time = date.getFullYear();
$.ajax({
type: "POST",
url: "/form/sn/bh.php",
success: function(msg) {
var zdbh = (time - 1) * 1000 + 1000 + msg;
bhobj.val(zdbh).attr("readonly", "");
}
});
}
<?
include_once("inc/auth.php");
ob_clean();
$bha=mysql_fetch_array(mysql_query("select id from $shujuku.flow_data_70 order by id desc limit 1"));
echo $bha[0];
?>