$rs=mysql_fetch_object($result)  然后可以这么定义变量吗?$id = $rs->post_id;