- Original Message -
From: "Lewis Watson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 9:35 AM
Subject: [PHP-DB] Checkboxes to gather rows to delete
> I have a mysql database with a table using one column as a primary key.
> (r
re.
---John Holmes...
> - 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] Check
http://www.phparch.com/
>
> >
> > - Original Message -
> > From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
> > To: "Lewis Watson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Monday, February 24, 2003 10:36 AM
> &g
t;Lewis Watson" <[EMAIL PROTECTED]>; <[EMAIL 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...
> > &
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
D]>
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
> >
> > $teacher
> 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)) {
> This is where I should loop through checking for the chosen
delete.
}
print "";
print "";
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Lewis Watson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 10:21 AM
Subject: Re: [PHP-D
elp you put it all
together.
---John 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
L 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 globals off.
Currently, I
> > have the values for each ID being returned in a array Array ( [0]
=>
>
> 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
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
expl
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
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
> 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 pos
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 pul
16 matches
Mail list logo