[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 … Read more

[Solved] Getting links from db and displaying them in another div [closed]

Yes, it is possible. To do this, you need to use AJAX. Here is a beginners tutorial: http://www.tizag.com/ajaxTutorial/ After you read up on that, and understand the basics (if you don’t know javascript, you may want to look into some more tutorials), you can move on to jQuery(a Javascript framework). You can use jQuery.ajax() for … Read more

[Solved] dont show hide post which user had hide that post

Use it this way: SELECT * FROM `user_post` WHERE `id` NOT IN ( SELECT `post_id` FROM `hide_post` WHERE `user_id` = ‘{$userID}’ AND `status` = ‘hide’ ) Here the {$userID} should be the current logged in User’s ID. 7 solved dont show hide post which user had hide that post

[Solved] SELECT * FROM games WHERE

The only way I see this really would’t work, is if you’ve mistyped the name of the column ‘title’ (if the second query you wrote works) The assumptions about the case sensitivity are wrong, since the second query returns something, the first should return at least the same rows as the second one In MySQL … Read more

[Solved] Yet Another SQL Query

It’s not entirely clear what you mean by “in the past 5 days“, but something along the following lines should do the trick: SELECT COUNT(DISTINCT IDENT) FROM PS_LOGIN_LOG WHERE USER = ‘someuser’ AND TIME >= CURRENT_DATE – INTERVAL 5 DAY AND TIME < CURRENT_DATE + INTERVAL 1 DAY 0 solved Yet Another SQL Query

[Solved] how to write a stored procedure for adding the values in the table when we have two or more values for the same data in stored procedure MSSQl

how to write a stored procedure for adding the values in the table when we have two or more values for the same data in stored procedure MSSQl solved how to write a stored procedure for adding the values in the table when we have two or more values for the same data in stored … Read more