你能帮我把这个coldfusion语句转换成PHP来更新mysql吗?
<cfquery name="getrecords">
select email,name,id,status from table1
where status = 0
</cfquery>
<cfloop query="getrecords">
<p>#getrecords.name#</p>
<p>#getrecords.name#</p>
<cfquery name="update">
update table1 set status =1 where status = #getrecords.status#
</cfquery>
</cfloop>