Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6A578475C98 for ; Fri, 29 Nov 2002 07:26:02 -0500 (EST) Received: from nplex.globo.com (email.globo.com [200.208.9.53]) by postgresql.org (Postfix) with ESMTP id AD027475C15 for ; Fri, 29 Nov 2002 07:26:01 -0500 (EST) Received: from [200.219.69.252] by nplex.globo.com with HTTP; Fri, 29 Nov 2002 10:25:39 -0200 Date: Fri, 29 Nov 2002 09:25:39 -0300 Message-ID: <3DCBFE22000971C3@riosf06.globoi.com> From: angelo.rigo@globo.com Subject: deleting records with php and checkboxes To: pgsql-php@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/92 X-Sequence-Number: 1674 Hi I have the folowing two php?s to delete records from my database wich is an event database, it works typing the id field and clicking delete I would like to put checkboxes in more than one record at time to delete then. To make my script more advanced. How can it be done? i think i could put a checkbox with the default value "off (or 0)" and make the delete.php delete the record with the checkbox with value "on (or 1)", but the details to do this i need to discover someone has passed by this situation, and could help me? "); printf ("IdCity= stateLocationDayMonthTimeEvent"); do { $myrow =3D pg_fetch_row ($result,$row); printf ("%s%s%s%s%s%s%s%s ",$myrow[0], $myrow[1], $myrow[2], $myrow[3], $myrow[4], $myrow[5], $myrow[= 6],$myrow[7]); $row++; } while ($row < $numrows); printf ("
"); pg_close($db); ?> Type the id to be deleted.
ID to Delete :
Above is the delete.php Deleted with sucess!
"); pg_close($db); ?> ________________________________________ A busca mais veloz e precisa da internet. Acesse agora: http://www.zoom.com= .br.