473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to delete multiple records from database using checkbox

254 100+
hello everyone

I want to delete the selected records from database using checkbox. whch is generated dyanamically and checkbox is also generated dynamically,using php.

so please help me. if you may give some code, it will be better for me

thanks..
Nov 17 '07 #1
7 6378
acoder
16,027 Expert Mod 8TB
You won't be able to do this with JavaScript, but do you want the deletion to happen without unloading the page? If so, you could use Ajax for this.
Nov 17 '07 #2
mukeshrasm
254 100+
You won't be able to do this with JavaScript, but do you want the deletion to happen without unloading the page? If so, you could use Ajax for this.
Hi I don't want that deletion should happen without unloading. means it can be reloaded after deleting the record.
Nov 30 '07 #3
acoder
16,027 Expert Mod 8TB
Then in that case, there's no need for JavaScript. This would be a PHP problem.

Is there anything that you require on the client-side?
Nov 30 '07 #4
mukeshrasm
254 100+
Then in that case, there's no need for JavaScript. This would be a PHP problem.

Is there anything that you require on the client-side?
No. I just want that when user selects checkboxed it should delete the selected records from database. similarly when we do it while deleting our mail in yahoo.
Dec 1 '07 #5
acoder
16,027 Expert Mod 8TB
No. I just want that when user selects checkboxed it should delete the selected records from database. similarly when we do it while deleting our mail in yahoo.
Yahoo Mail uses Ajax. If you need to avoid unloading the page (which you've already said is not necessarily a requirement), then you will require some JavaScript, otherwise it's PHP which will connect to the database and delete the selected records.
Dec 1 '07 #6
mukeshrasm
254 100+
Yahoo Mail uses Ajax. If you need to avoid unloading the page (which you've already said is not necessarily a requirement), then you will require some JavaScript, otherwise it's PHP which will connect to the database and delete the selected records.
Hi

If you can give code for that than it would be better for me. So, Please!

Thanks
Dec 3 '07 #7
acoder
16,027 Expert Mod 8TB
This is a PHP problem, so I would advise you to ask in the PHP forum, if you haven't already done so.
Dec 3 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Sans Spam | last post by:
Greetings! I have a table that contains all of the function permissions within a given application. These functions are different sections of a site and each has its own permissions (READ, WRITE,...
1
by: mellie | last post by:
Hi there, SQL 2000 database with ASP I've found many things "out there" regarding updating and deleting multiple records with checkboxes but I can't seem to find anything about adding them. ...
1
by: Wolffang | last post by:
From: "Wolffang" <javid@techlite.co.uk> Subject: How to do a multiple select and update in a datagrid Date: 23 October 2004 21:28 Using Visual studio.net VB I have a datagrid that brings...
9
by: Dejan | last post by:
Hy, Sorry for my terreble english I have this simple code for deleting rows in mysql table... Everything works fine with it. So, what do i wanna do...: my sql table looks something like...
1
by: bigabytes | last post by:
I'm just learning PHP (extreme novice) and I'm struggling with deleting records using a checkbox included within each row. I have a few idea but I'm not sure if my thoughts are correct. I think I...
10
by: chimambo | last post by:
Hi All, I have a little problem. I am retrieving records from a table and I want to update the records using checkboxes. I am able to display the database record quite alright and I have created...
2
by: Michael | last post by:
It seems that a gridview allows us to delete only a single row at a time. How to extend this functionality to select multiple rows and delete all of the selected rows in a single stroke? just like...
1
by: chocciies | last post by:
Hi! I want to delete multiple record via checkboxes. However, with no success. Is there sthg wrong with the value of my checkbox? Your help will be greatly appreciated. Thanks! <form...
13
by: ramprakashjava | last post by:
hi, i hav "java.lang.NullPointerException" error while Deleting table records using checkbox in jsp here i enclosed files help quickly plzzz.. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.