[FX.php List] How to have an Edit Record link in a list.

Tim 'Webko' Booth tim at nicheit.com.au
Sun Nov 27 20:02:34 MST 2011


Dear Denis

> Got my loop, am echoing out all sorts of values for each record in  
> my list/loop, I just don't know how to get echo a link to edit the  
> current record in the loop on an editing page.

Well, assuming we have a unique ID field then inside the foreach I  
would use something like:

<a href="edit.php?id=<?php echo $result['ID'][0]; ?>">Edit</a>

And have the edit page do a search on the ID to pull up the editable  
fields...

Cheers

Webko


More information about the FX.php_List mailing list