Re: No subject was specified.

From: Date: Wed, 13 Sep 2000 13:27:15 +0000
Subject: Re: No subject was specified.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16559@lists.php.net to get a copy of this message
Try this: <html> <? if (isset($flag)) delete_table(); ?> <body> <form action=thispage.php> <input type=hidden name=flag value="1"> <? build_table() ?> </form> </body> </html> []'s ------------------------ Frederico Augusto Costa facosta@magnux.com.br ------------------------ On Wed, 13 Sep 2000, Richard Bradley wrote: > I've written one of my first PHP programs and returned a table of my > data in HTML:-) > But I want to write a PHP SQL statement to delete marked records (checkbox). > > Okay, here's the question "How do I write an PHP action that will return > the same page and delete the marked records from mysql database. > > +--------------+----+ > | Bill Clinton | X | > +--------------+----+ > | Al Gore | X | > +--------------+----+ > | Rush Limbaug | | > +--------------+----+ > > i.e. Putting all politics aside: Say I wanted to delete those two guys > at the top of my query result (by clicking on a checkbox) and return the > resulting query and delete the marked ones from the database I'm > supposing I'd make a "T" or "F" or "1" or "0" for > the checked and null > or unchecked box. But I'm a new programmer and struggling so if anyone > can help please do. > > +--------------+----+ > | Rush Limbaug | | > +--------------+----+ > > > -- > Richard > Senior Site Developer/YourLink, inc. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#16559) next »