Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Adnan's code is working for me as well. To the OP, could you post the results of the <code>print_r</code> statement so we can verify that something is being posted for the checkboxes? Your <code>isset</code> code checks that the form has been submitted, but I want to make sure something is being submitted for the checkboxes as well. </p> <p>I have a few other comments on the OP's question as well, however, based on several things I notice. A) You use <code>echo "&lt;pre&gt;"</code> but you never use echo a closing tag with <code>echo "&lt;/pre&gt;"</code>. Maybe you just left this code off, but that might garble your output down the line if you leave off closing tags.</p> <p>B) Please don't use <code>mysql_*</code> functions for new code. They are no longer maintained and the community has begun the <a href="http://news.php.net/php.internals/53799" rel="nofollow">deprecation process</a> (see the <a href="http://uk.php.net/manual/en/function.mysql-connect.php" rel="nofollow">red box</a>). Instead, you should learn about <a href="http://en.wikipedia.org/wiki/Prepared_statement" rel="nofollow">prepared statements</a> and use either <a href="http://php.net/pdo" rel="nofollow">PDO</a> or <a href="http://php.net/mysqli" rel="nofollow">MySQLi</a>. If you can't decide which, <a href="http://php.net/manual/en/mysqlinfo.api.choosing.php" rel="nofollow">this article</a> will help you. If you care to learn, <a href="http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers" rel="nofollow">this is a good PDO tutorial</a>.</p> <p>You'll find that using prepared statements not only makes your code more secure, but it's also significantly simpler to implement in code. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload