使用范例: $link=mysql_pconnect("localhost","sunsoft","suixiang") or die("Could not connect"). mysql_0select_db("samp_db") or die("Could not 0select database"). $query="INSERT INTO
member(last_name,first_name,expiration)"."VALUES( Brown , Marcia , 2002-6-3 )". $result=mysql_query($query) or die("Query failed"). printf("%d row%s insertedn",mysql_affected_rows(),mysql_affected_rows()==1?" ":"s"). ?>