Get cookies in php? [duplicate]

≯℡__Kan透↙ 提交于 2019-12-03 01:21:57

问题


Possible Duplicate:
It is possible to insert data in two different table in mysql by one insert query php?

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.com

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


回答1:


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.



来源:https://stackoverflow.com/questions/10579504/get-cookies-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!