0
votes
1answer
24 views

Trying to set default checkbox value if not checked

Basically I can get the value that applies to when the box is ticked (= 1), but I can't get it to send the default value of 0 when not checked. <input type="checkbox" name="post_friend" ...
0
votes
2answers
28 views

php can`t delete more than one row

I`m using a form with several checkboxes to make the user to select which rows he want to delete. The code to generate the form is this: if ($busqueda!=""){ $busca = mysqli_query($con, " SELECT ...
0
votes
3answers
49 views

php can`t delete rows in mysql

I`m using a form with multiple checkboxes to select several rows and delete all of them, the code I use for that is: foreach ($_POST as $valor){ $del_user = $_POST["borrar_usuario"]; ...
0
votes
2answers
20 views

Using checkboxes with PHP and MySQL- passing 1 and 0 to and from the db

So lets say I have a checkbox <input style="margin-left:0px;" type="checkbox" value="1" name="disablePause" class="product-options-cbx" <?= $this->oProduct->getDisablePause() == 1 ? ...
0
votes
4answers
39 views

php I can`t delete fields in a mysql database

I need to delete to generate a form to select in checkboxes which users I want to delete from the database. To search the users and generate the form I use this code: <?php $con = new ...
-1
votes
1answer
59 views

How to post array data from a form to mysql DB

please forgive naivety and innocence...I am not a programmer! I have spent the best part of 4 days on this and I am ready for a PHP lesson or intense therapy. Scenario: DB built in mySQL. Table with ...
-1
votes
5answers
63 views

Insert multiple records in mysql [closed]

I am getting the list of students from 1 table it has 5 records. Now i added a checkbox at the end of each row. Now what i want to do is insert all the data in a new table including the checkbox value ...
2
votes
1answer
58 views

How to check box when dropdown list is selected

I have a dropdown list which is created from a database. I also have a checkbox list which is created from a database. In the database i have a group setup so you can tick multiple boxes and save ...
-1
votes
4answers
43 views

Exporting information from MYSQL to Checkboxes

I am having issues getting information out of mysql into multiple checkboxes. The query im using is this. <?php $usergroupid = $_SESSION['UserGroupID']; $sql="SELECT * FROM sites WHERE ...
0
votes
2answers
49 views

Dynamically display checkboxes

On my web page I have 2 text boxes which take the input as Year and month respectively. Then From the Database table depending on these values a column value is retrieved which is called working days. ...
0
votes
1answer
48 views

Checkbox and Isset to update Mysql with PHP

I can't get my update checkbox function to work. I need to be able to remove or add a value which I have chosen to call checked in to my table. The code looks like following. <form ...
-1
votes
0answers
20 views

Checkbox only checks last value

I want to check my checkboxes with data pulled from the database. Rightnow, it only works when a subscriber is signed to one category. But when a subscriber is signed to two or more categories, the ...
1
vote
2answers
50 views

Updating MySQL table with PHP and checkboxes

I have a table called products, with an: id: int, primary key, auto increment product_name: varchar highlighted: int (1 or 0) So, I want the highlighted field to be totally updateable via my admin ...
0
votes
2answers
33 views

Iterating through array and uploading data into rows in database

I have a few checkboxes that i want to insert their values into a database if they are checked. HTML: <input type="checkbox" id="m1" name="category[]" value="1"/> <input type="checkbox" ...
0
votes
6answers
65 views

PHP: Submit checkbox to database

I am having trouble submitted checkbox values and details to my database. This is my HTML: <form method="get" action="check.php"> <input type="checkbox" name="checkAccount"/> ...
0
votes
0answers
16 views

Multiple values checkbox to mySQL

i am trying to give 0 or 1 values to mysql from checkboxes, but i only have a problem. When i don't comment checkbox, then he don't give 0 as value to mysql, only 1 when i comment checkbox. It's the ...
0
votes
1answer
101 views

Multiple checkbox to a sentence before insert to mysql

I' edit this question with my full coding Let me post my full code here. Page1.php <div id="container"> <div class="box"> <form name="form" method="post" ...
-2
votes
2answers
168 views

HOW TO: Insert checked checkboxes into mysql using C#

I have a small WPF application, that doesn't works. It is connected to a mysql database. What I want to do is to be able to check several options in my wpf (using checkboxes), and to store those ...
0
votes
1answer
127 views

Storing javascript checkbox(checked/unchecked) result in php mysql error

I am trying to accomplish live checkbox result with checked/unchecked checkbox. My logic for checkbox works but now I want to store this live checkbox result in MYSQL So ...
0
votes
2answers
137 views

How to Store javascript checkbox result in php mysql

I am trying to accomplish live checkbox result with checked/unchecked checkbox. My logic for checkbox works but now I want to store this live checkbox result in MYSQL. So when I click on checkbox, ...
0
votes
0answers
165 views

Checkbox value insert into MySQL

Here is what my front end looks like. I have created checkbox for email on and off, and I would like to store this ON/OFF information in MySQL. This is my PHP code <!DOCTYPE html> ...
0
votes
7answers
262 views

Checkbox with PHP and MYSQL

I have two checkboxes <form action="" method="post" enctype="multipart/form-data"> <input type="checkbox" name="file_type" value="1"> Filer<br /> <input type="checkbox" ...
-4
votes
2answers
43 views

PHP display dynamic ammount of collumns [closed]

In mysql table i have many columns (i know its bad), i want that user could select columns with checkboxes and then display records from mysql. My demo code with hardcoded columns: <?php ...
0
votes
1answer
60 views

PHP + MySQL: How to select values from a checkbox

The HTML: <form method="post" action="form.php"> <input type="checkbox" name="foo[]" value="1"/>This<br/> <input type="checkbox" name="foo[]" ...
0
votes
1answer
182 views

SELECT query based on checkboxes selected

I have a form , where users select available skills <form name="myForm" action="jssearch.php" method="post"> <input type="checkbox" name="chk1[]" value="1">Helpdesk Support<input ...
0
votes
4answers
846 views

PHP checkbox set to check based on database value

I have a system where people fill in their information and later can go back and edit certain parts, basically the enter personal info and check whether they want to know extra info, these bits of ...
0
votes
3answers
467 views

Saving multiple check boxes into one database field [duplicate]

I have a number of check boxes that relate to one field in a database. The checked values are recognised and put into a string but the value is not saving into the database. The table name and field ...
1
vote
3answers
184 views

calculate sum of columns in mysql using boolean php

I have a table named expenses and it includes these columns: ID, amount_1, amount_2, amount_1_paid, amount_2_paid, total amount_x_paid is a TINYINT so it's used for checkboxes. What I want to do ...
1
vote
2answers
178 views

Save checkbox in mysql database

I've updated my code. It's working except when i select more selectboxes at a time. If i select for example 2 selectboxes at the same time and i update them, the database updates them both to 0. When ...
-4
votes
1answer
152 views

Android app for taking attendance using WAMP [closed]

I want to create an android application which uses WAMP server to communicate with a mySQL backend. We take attendance using checkboxes and each column of the table represents a particular student. ...

1 2 3 4 5 9
15 30 50 per page