0

I was using simple multiple rows update using checkboxes,php and sql, but now i am moving to jquery.datatables http://www.datatables.net/

I am not able to get checkbox values in it. Any one can tell me is there any method or i am doing any mistake ?

Following is method i am using :

if (isset($_POST['checkbox'])) {
    $checkbox = $_POST['checkbox'];
    $id = "('" . implode( "','", $checkbox ) . "');" ;
    mysql_query ("update value1 from table where id in '$id'");
}

Thanks

2
  • Your update query is wrong have a look at dev.mysql.com/doc/refman/5.0/en/update.html. You should also escape your vars to prevent sql injection. Or better use PDO or mysqli. Commented Feb 3, 2013 at 14:48
  • HHmm but i am not even getting $checkbox Commented Feb 6, 2013 at 12:44

1 Answer 1

1

I have updated the new version of data-tables and it fixed that.

1
  • Wow, 4 years since the original question and you just posted a solution! +1 for never giving up! Commented May 31, 2017 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.