Welcome Guest, Not a member yet? Register   Sign In
How can I dynamically get the ID from a row in my database?
#3

[eluser]cvandal[/eluser]
Hi Jedd,

To clairfy, I have two views. One which displays "pages" from my database and provides an option to either delete or update that "page". If a user clicks on the update anchor, the second view is loaded. The second view is simply a form that when submitted will update the corresponding "page".

So let's say there are 3 rows in my pages table, each has it's own ID (100, 101 and 103). At the moment 103 is hardcoded in my Model for updating. What i'm trying to do is have that ID depend on what "page" in selected by the user instead of me hardcoding it.

I hope that makes sense Smile


Messages In This Thread
How can I dynamically get the ID from a row in my database? - by El Forum - 09-12-2009, 08:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB