* Thus wrote Adil:
>
> As far as the code goes what I'm doing is retrieving each record from the
> database and assigning the "value" attribute of each checkbox the unique id
> from the database. From that point on, when a checkbox is checked and the
> delete button is pressed, I push each checke
On Wed, 2004-10-13 at 16:11 -0400, Adil wrote:
> function deleteFiles() {
> foreach($_POST['stack'] as $i) {//This should work but I
> can't
> tell if it is or isn't
> mysql_query("DELETE FROM uploads WHERE upload_id =" . "$i");
> }
>header("Location: http://"; . $_SERV
[snip]
function deleteFiles() {
foreach($_POST['stack'] as $i) {//This should work but I
can't
tell if it is or isn't
mysql_query("DELETE FROM uploads WHERE upload_id =" . "$i");
}
[/snip]
Try print_r $_POST['stack'] and see what you get.
--
PHP General Mailing List (http
Hey everyone, I'm trying to delete multiple records from a database using
PHP. I have a file list page which shows each entry in the database with a
checkbox next to it. At the bottom of the page is a "Delete" button. A
user should be able to check as many items on the file list and hit delete
wh
4 matches
Mail list logo