I have a mysql database with a table using one column as a primary key.
(rowID). On a php page I use a query to list all of the rows of the table
and have a checkbox beside each row that should be used to check if you
would like to delete this row. Can someone give me an example using post
to
I have a mysql database with a table using one column as a primary key.
(rowID). On a php page I use a query to list all of the rows of the table
and have a checkbox beside each row that should be used to check if you
would like to delete this row. Can someone give me an example using post
It is wrong to use that way of doing it John, cause this will delete ALL
lines that where printed with a checkbox
And also, if you are using a old version of PHP with register globals OFF,
the _POST array will not be available
Mathieu Dumoulin
1lt John W. Holmes [EMAIL PROTECTED] a écrit dans le
records, this makes sesne.
Just my 2c.
George in Oxford
-Original Message-
From: Mathieu Dumoulin [mailto:[EMAIL PROTECTED]
Sent: 24 February 2003 3:49 pm
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Checkboxes to gather rows to delete
It is wrong to use that way of doing it John
I appreciate all of the quick replies. I do have globals off. Currently, I
have the values for each ID being returned in a array Array ( [0] =
101 [1] = 201 ) where 101 and 201 were the id's of the rows I checked. I
have to say I like the way of doing it that Mathieu has shown using the
I appreciate all of the quick replies. I do have globals off. Currently, I
have the values for each ID being returned in a array Array ( [0] =
101 [1] = 201 ) where 101 and 201 were the id's of the rows I checked. I
have to say I like the way of doing it that Mathieu has shown using the
Subject: Re: [PHP-DB] Checkboxes to gather rows to delete
I appreciate all of the quick replies. I do have globals off.
Currently, I
have the values for each ID being returned in a array Array ( [0]
=
101 [1] = 201 ) where 101 and 201 were the id's of the rows I
checked. I
have to say I
Holmes...
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Lewis Watson [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:13 AM
Subject: Re: [PHP-DB] Checkboxes to gather rows to delete
I appreciate all of the quick replies. I do have
]; [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 10:21 AM
Subject: Re: [PHP-DB] Checkboxes to gather rows to delete
Thats just it. I am just not sure what to do with the array before my
delete from query now that I have it :-)
Thanks...
Lewis
You don't have to do anything
Subject: Re: [PHP-DB] Checkboxes to gather rows to delete
Thanks. The below code returns each ID in an array like so...
Array ( [0] =101 [1] = 201 ). Thanks for the help!
Lewis
$teacherID = $_POST[teacherID];
$deleteID = $_POST[deleteID];
if(isset($delete_teacher
On Monday 24 February 2003 23:57, George Pitcher wrote:
Can I raise a point of principle here.
My databases never have records deleted - instead they are marked as being
deleted in a status field. That way, they are always there for reference.
Unless you are running a system that needs the
, 2003 10:36 AM
Subject: Re: [PHP-DB] Checkboxes to gather rows to delete
Thanks. The below code returns each ID in an array like so...
Array ( [0] =101 [1] = 201 ). Thanks for the help!
Lewis
$teacherID = $_POST[teacherID];
$deleteID = $_POST[deleteID];
if(isset
PROTECTED]
Sent: Monday, February 24, 2003 10:36 AM
Subject: Re: [PHP-DB] Checkboxes to gather rows to delete
Thanks. The below code returns each ID in an array like so...
Array ( [0] =101 [1] = 201 ). Thanks for the help!
Lewis
$teacherID = $_POST[teacherID];
$deleteID
...
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Lewis Watson' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 11:09 AM
Subject: RE: [PHP-DB] Checkboxes to gather rows to delete
Hi there,
I have double checked the column namesIts giving me
14 matches
Mail list logo