可能重复: 插入数据到两个不同的表中。 / p>
Possible Duplicate: It is possible to insert data in two different table in mysql by one insert query php?
我有一些用户信息保存在cookie中,用户信息如下:
I have some users information saved in cookie, the users information are like this,
Fname:Muhammad,Lname:Riaz,title:Developer,org:MagicLamp,email:riaz@yaho
我想将这些信息插入到mysql数据库,问题是如何从cookie获取这些信息并插入数据库
I want to insert these information in to mysql database , The problem is this how can I get these information from cookie and insert into database
推荐答案看起来你只是创建一个cookieuser_token,其中包含你想要的序列化信息。我想你希望你的foreach迭代的非序列化的user_tokencookie而不是所有的cookie。
It looks like you're only creating one cookie, "user_token", which contains the serialized information you want. I think you want your foreach to iterate over the unserialized "user_token" cookie instead of all the cookies.
更多推荐
在PHP获取Cookie?
发布评论