在PHP获取Cookie?

编程入门 行业动态 更新时间:2024-10-13 14:22:44
本文介绍了在PHP获取Cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

可能重复: 插入数据到两个不同的表中。 / 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?

本文发布于:2023-05-29 03:38:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/335880.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file 'D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!