Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您需要在将结果用作变量之前获取结果!
$bdate = new DateTime(mysql_result($result, 0, 0));
见mysql_result()