RE: update/delete

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With all deference to Peter who most likely knows a lot more about
phpMyAdmin than I do, my understanding is that you normally wouldn't put
phpMyAdmin in front of a user; it's more of an admin tool. I don't use it
much, I only use it to admin my remote hosted db, so I might be wrong.

In the chance that I'm right AND you're writing something that would be put
in front of a user, you can try the following:

<a href="deleteScript.php?id=$varID">Delete</a>
<a href="updateScript.php?id=$varID">Update</a>

The logic is very simple. You just have to create the pages/scripts to
delete or update a record and put those scripts in the hrefs (as shown
above). Supply the ID of the record to be updated or deleted in the href,
and you're good to go.

Hope this helps,
Rich

> -----Original Message-----
> From: Peter Lovatt [mailto:pjln1@sunmaia.net]
> Sent: Monday, April 07, 2003 9:29 AM
> To: massimo; php-db@lists.php.net
> Subject: RE:  update/delete
> 
> 
> try phpMyAdmin
> 
> :)
> 
> Peter
> 
> 
> 
> -----Original Message-----
> From: massimo [mailto:sub0@speakeasy.net]
> Sent: 07 April 2003 14:16
> To: php-db@lists.php.net
> Subject:  update/delete
> 
> 
> hello,
> 
> With PHP and mySQL ,it's possible to have a href link next to 
> each row 
> which would let me delete and update(2 different links).
> if yes, how?
> sub
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux