在 php 中获取 cookie?

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

可能的重复:可以通过一个插入查询php在mysql中的两个不同表中插入数据吗?

我在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

推荐答案

看起来您只是在创建一个 cookie,user_token",其中包含您想要的序列化信息.我认为您希望 foreach 遍历未序列化的user_token"cookie 而不是所有 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:37:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/335863.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:词库加载错误:Could not find file 'D:\淘小白 高铁采集器win10\Configuration\Dict_Sto

发布评论

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

>www.elefans.com

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