Adjusting Indexed Field After Deleting Entry
| From: | Guru Geek | Date: | Sat, 25 Jan 2003 16:41:04 +0000 |
| Subject: | Adjusting Indexed Field After Deleting Entry | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133108@lists.php.net to get a copy of this message | ||
Hello,
Here is one of my smaller PHP projects. I'm trying to finish it before
I move on to my CMS project.
http://www.g-i-w-s.com/linker_admin.php
The script does nothing more then manage links. It lists an indexed
number of the link, a url, a text description and a delete option.
Here's my question. I originally had a link #1, #2, and #3. I
obviously deleted them. I was wondering if there is a way to use
PHP/MySQL to get the indexed numbers to re-assign so that the first link
you see is always #1 the second link you see is always #2 and so on?
Thanks in advance,
Roger
PS
The original script was not mine, it came from a 'php how to' article at
web monkey, I did some modifications to fit what I needed. We don't
want anyone thinking that I'm taking credit for their knowledge ;-)