php插入mysql数据返回id的方法
如下所示:
匹克系统应用:
$query="INSERTINTOpkbk.v9_member(phpssouid,username,password,encrypt,nickname,regdate,lastdate,regip,lastip,loginnum,biaoshi,planid,email,groupid,areaid,amount,point,modelid,message,islock,vip,overduedate,siteid,connectid,`from`,mobile,yey,yeybj,sleeptime,waketime,cardno,zentime,zencount,is_js,bsount)". "VALUES(1,'lbg','9f575f22246a1a5fb38e1846bb0ec964','pTseba','',1384397338,1403544894,'221.199.6.231','118.112.20.103',0,'',0,'nxnet123@qq.com',2,0,0,0,10,0,0,0,0,1,'A74EECDFA5A22C81C05ED49E7CF9224D','qq','','','',0,0,'',0,0,0,0)"; $number=$mydb->sql_query($query); echo"IDoflastinsertedrecordis:".mysql_insert_id();
以上这篇php插入mysql数据返回id的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。