Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7912233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:32:53+00:00 2026-06-03T13:32:53+00:00

Possible Duplicate: Save my cookie data to MySQL database? I want save data into

  • 0

Possible Duplicate:
Save my cookie data to MySQL database?

I want save data into mysql **database**** from **cookies in php.
I have an application that store data in cookies at offline server, I want to save this cookies in my sql database when I go online.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:32:54+00:00Added an answer on June 3, 2026 at 1:32 pm

    Your question is not clear, but it may be useful to you.

    You can iterate over php cookie array and insert it in your table.

    foreach($_COOKIE as $name => $cookie){
        // you can check any conditions based on cookie name $name
        $query1 = "INSERT INTO table_name(field_name) VALUES(" . mysql_escape_string($cookie) . ")";
        mysql_query($query1);
        unset($query1);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Call php function from javascript I understand that php is server side
Possible Duplicate: save image from php url using php How can i use php
Possible Duplicate: How do I save an Android application's state? I have an Android
Possible Duplicate: Disable browser 'Save Password' functionality In my application, I have a login
Possible Duplicate: How to save in the dropdown the value choosed? I have a
Possible Duplicate: saving data in iOS Do we have a provision profile to select
Possible Duplicate: Find url from string with php I found this code: but 2
Possible Duplicate: Save Youtube video to iPhone in the app I want to download
Possible Duplicate: How to save picture to iPhone photo library? I want to know
Possible Duplicate: Can't pass mysqli connection in session in php Many of us have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.