[Solved] How to save data in mysql from cookies in php? [duplicate]


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);
}

3

solved How to save data in mysql from cookies in php? [duplicate]