hello ,
here , i have arised problem in php & mysql .
i have one form which has 3 checkboxes .if i m selected checkbox then the radiogroup is enable and i m selected one value.
if i m selecting multiple checkbox is selected then that all checkbox values are inserted into the mysql database .
means suppose
1chekcbox- radiogrop value is 1,2,3 check & select 2
2chekcbox- radiogrop value is 1,2,3 check & select 3
3chekcbox- radiogrop value is 1,2,3 not check
then suppose
table is select * from table1;
insert into table1(checkbox 1,radio) values(checkval ues,radiovalues );
want to insert
so at a time both selected checkbox & that values r inserted into the database at a time
if u can solve than pls reply.......... ..
thank u
4 2734 code green 1,726
Recognized Expert Top Contributor
Your idea sounds fine and the plan is simple.
But I am sorry because I do not understand exactly what your problem is
Your idea sounds fine and the plan is simple.
But I am sorry because I do not understand exactly what your problem is
hello
thank you for reply me .
but i m tell u again
i have 3 checkboxes right .& 3 radiobuttongrou ps.
my code is like: if i m select checkbox then radiogroup is enable .if not click then radiogroup is disable .1 checkbox has 1 radiogroup.
so upto this i have complete but problem is here,
suppose i have select 2 checkbox & 2 radio ok then i want to insert 2 checkbox values & 2 respected radiogroup values inserted into the mysql table at a time (means submit).
ok
i think u get idea.
reply me
thank you
khyati
bye
code green 1,726
Recognized Expert Top Contributor
suppose i have select 2 checkbox & 2 radio ok then i want to insert 2 checkbox values & 2 respected radiogroup values inserted into the mysql table at a time (means submit).
Do you mean you want to INSERT multiple records? Like this - INSERT INTO table1(checkbox,radio) VALUES (checkvalues1,radiovalues1),(checkvalues2,radiovalues2),(checkvalues3,radiovalues3),etc
In other words you name the fields, then for each record you list each set of values within brackets, seperated by a comma.
pbmods 5,821
Recognized Expert Expert
Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Lyn |
last post by:
I am trying to get my head around the concept of default, special or empty
values that appear in Access VBA, depending on data type. The Access Help
is not much (help), and the manual that I have is not much help here either.
Googling has given me a little help.
This is my current understanding -- I would appreciate any comments or
corrections...
"" -- this means an empty string when applied to String data type, and also
to Variant...
|
by: Punisher |
last post by:
I'm adding checkbox controls to a table dynamically when the form loads for
the first time. When a postback occurs, the controls are not maintained in
the table. How do I get them to retain without having re-add them again.
|
by: Jim Heavey |
last post by:
Trying to figure out the technique which should be used
to add rows to a datagrid. I am thinking that I would
want an "Add" button on the footer, but I am not quite
sure how to do that. Is that the best method? Do you
have a sample of how to do this?
|
by: Ankit Aneja |
last post by:
I have a strange situation and I have no idea how to solve this.
Its a Recruitment Search Page,in the Admin Page, for every button click
event the Admin Person has to create a checkbox on the users page. So
whenever the Admin person comes to know about the new category in the market
he will be adding as different Sub-Categories for example ABAP, BDC
etc..etc.. on every click event as Checkboxes. And these
controls(checkboxes) should remain...
|
by: sianan |
last post by:
I tried to use the following example, to add a checkbox column to a
DataGrid in an ASP.NET application:
http://www.codeproject.com/aspnet/datagridcheckbox.asp
For some reason, I simply CAN'T get the example to work. I created the
following two classes, provided with the example:
*-*-**-*-*-*-*-*-*-*-*-*-**-*-*-*-*-CheckBoxColumn
Class:-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-**-*-*-*
| |
by: Alan Silver |
last post by:
Hello,
I have a repeater that has code like this...
<ItemTemplate>
<asp:CheckBox ID="chkDelete" Text="" RunAt="server"/>
.... other stuff goes here
</ItemTemplate>
There is a button below the repeater. When clicked, it is supposed to
|
by: =?Utf-8?B?UGV0ZXJX?= |
last post by:
I have a TabControl on a Windows form in which I have various tab pages each
with a DataGridView, the first column of which is a
DataGridViewCheckBoxColumn and subsequent columns being
DataGridViewtextBoxColumns.
In each case the properties of the CheckBoxcolumn have been set to not allow
nulls, so presumably only explicit true or false values should be possible.
I run the application and set check boxes for DataGridView rows I am...
|
by: LionsDome |
last post by:
Hello,
I have a vb.net page which a bunch of checkboxes. A user can select a
checkbox(s) and hit the submit button to store those values in a SQL
Server table. This works fine with no problem the first time the user
submits. However when user submits a second time while changing some
of the selected boxes the page only re-submits the previosly selected
checkbox values. It's like its storing it somewhere in the cache or
something. My...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |