hello everyone
I want to delete the selected records from database using checkbox. whch is generated dyanamically and checkbox is also generated dynamically,usi ng php.
so please help me. if you may give some code, it will be better for me
thanks..
7 6408 acoder 16,027
Recognized Expert Moderator MVP
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.
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.
acoder 16,027
Recognized Expert Moderator MVP
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?
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.
acoder 16,027
Recognized Expert Moderator MVP
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.
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
acoder 16,027
Recognized Expert Moderator MVP
This is a PHP problem, so I would advise you to ask in the PHP forum, if you haven't already done so.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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,
UPDATE, DELETE) which are controlled by a web frontend and the table
records are manipulated to control the permissions.
Example:
The Press Release section record would look like this:
Username: John Doe
Function Name: Press Release
|
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. A user wants to create a price list for their
client and they need to add parts to it in a separate table. I would
like to display the list of parts and the user would select multiple
parts to add to a price list by checking a checkbox and...
|
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 records from a stored procedure.
Be selecting multiple datarows using a checkbox.
All i want to do is update a field called 'Active' datatype bit from 0 to 1
|
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 this:
id Name Surname pictr0 picrt1 pictr2
pictr3
|
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 need to turn it into a Form to be able to capture whats been checked but I would appreciate any guidance.
Most of the code I am using is from a solution a co-worker wrote for another solution and I learning by using it as a guide/example if...
| |
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 an array of
checkboxes, but my update loop is not working. Here is my code:
/*---------This retrieves the records -------------*/
if($row_md)
{
do{
echo "<tr><td text align='right'>";
|
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 what hotmail web UI is doing
now (having the option of selecting multiple rows (using the checkbox
provided) and perform a set of operations on them)
|
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 name="form1" method="post" action="">
<p>
<?php
|
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..
Regards
Ramprakash
/*Adminpage.jsp*/
<%@ page language="java" import="java.sql.*"%>
<html>
<head>...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |