Save my cookie data to MySQL database?

后端 未结 1 1517
暗喜
暗喜 2020-12-07 06:36

I was doing a survey I was offline server so I save users information in cookies, I have users Information like this

Fname:Ali,Lname:Kheiri,title:Director,o

相关标签:
1条回答
  • 2020-12-07 07:14

    you should get the cookie value as a string split it and have every criteria alone than use the insert query because the query you wrote is incorrect you saying insert into user_data the first name the last name the job title... but you are only giving him 1 value the $cookie but the sql don't know that the $cookie contain everything so you should first slpit the cookie value based on the ','

    0 讨论(0)
提交回复
热议问题