这是mysql的查询权吗?请注意该用户是日期使用mysql和php存储日期
sprintf("INSERT INTO userinfo (username,userbdate,national,email, mobilenum,phonenum,
street,city,stateof , postoofice,country,lastcirt,cirt,specailzation,exper,
yearsofexper,notes)
VALUES ('%s', '%d' , '%s' , '%s' , '%d' , '%d' ,
'%s','%s','%s','%s','%s','%s','%s','%s','%s',
'%d','%s')",
$user->getUserName(),
$user->getgetBirthDate(),
$user->getNational(),
$user->getEmail(),
$user->getMobilenum(),
$user->getPhonenum(),
$user->getPhonenum(),
$user->getStreet(),
$user->getCity(),
$user->getStateof(),
$user->getPostoffice(),
$user->getCountry(),
$user->getLastcirifacite(),
$user->getCirifacite(),
$user->getSpecailaztion(),
$user->getExper(),
$user->getYearsOfexper(),
$user->Notes(),
$userModel->getUserId());
'postoofice'不知道这是故意还是打字错误 – 2011-05-19 18:35:16