RE: [PHP] How to duplicate this functionality?
| From: | Ryan A | Date: | Sat, 15 May 2004 14:10:20 +0000 |
| Subject: | RE: [PHP] How to duplicate this functionality? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186303@lists.php.net to get a copy of this message | ||
> It's fairly simple: at the top of your script, have a block of code
similar
> to the following, and have the link point to
> --
> $_SERVER['PHP_SELF']."?rm_id=".$id_to_be_deleted
> --
> I'll
> leave out all but the essential elements.
>
> <code>
> <?php
> if (isset($_GET['rm_id']))
> {
> $query = "REMOVE FROM whatever WHERE id = ".$_GET['rm_id']." LIMIT
> 1";
> mysql_query($query);
> }
> ?>
> </code>
>
> Will Collins
Hi Will,
Thanks for replying.
Yes, I know how to delete rows/products etc from the database, cookies etc,
the only think I was confused about was that I didnt get the "blank pause"
as I clicked on the item to be removed, it was immediate...Curt pointed out
its probably coz I am on a fast line (10mbs) and that the page is using good
cacheing....others on the list kind enough to try it out reported that its
giving the "blank pause" when they accessed it via Linux using these
browsers Netscape 7, Opera 7.2 and so on....
Cheers,
-Ryan