Oto kod
<?php require_once('../Connections/myconn.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": break; case "double": break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $query_Recordset1 = "SELECT * FROM userlogin"; ?> <form name="form1" method="post" action="edit_user.php"> <table border="1" cellpadding="1" cellspacing="1"> <tr> <td>Oznacz</td> <td>user_id</td> <td>firstname</td> <td>lastname</td> <td>username</td> <td>password</td> <td>email</td> <td>dateregister</td> <td>lastlogin</td> <td>active</td> <td>COLOR</td> <td>ip</td> </tr> <?php do { ?> <tr> <td><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<?php echo $row_Recordset1['user_id']; ?>"> <label for="checkbox[]"></label></td> </tr> </table> <input type="submit" name="submit" id="submit" value="Wyślij"> </form> <?php ?>