PHP Classes

Primary Key as param

Recommend this page to a friend!

      classListbox  >  All threads  >  Primary Key as param  >  (Un) Subscribe thread alerts  
Subject:Primary Key as param
Summary:How could I pass the primary key as a URL param
Messages:3
Author:Scott
Date:2006-09-05 23:53:43
Update:2006-09-06 01:24:38
 

  1. Primary Key as param   Reply   Report abuse  
Picture of Scott Scott - 2006-09-05 23:53:43
Your dataGrid class is really great! I'm pretty new to PHP, so the amount of open source code that I have found on the internet has really helped me learn a lot.

I'm working on an application where I need to display some records from a table and supply a link that will take the user to another page. I need to be able to pass in the primary key of the record that was clicked on when the next page loads. Is there an easy way I could do that with your class?

  2. Re: Primary Key as param   Reply   Report abuse  
Picture of Carlos Miguel Guevara Carlos Miguel Guevara - 2006-09-06 00:29:07 - In reply to message 1 from Scott
yes yo can do this
$oDataGrid->set_col_type("Field","LNK","http://dir.com?id=");

and the field "Field" is going to be a link with a param name id which will contain the PK of the record

  3. Re: Primary Key as param   Reply   Report abuse  
Picture of Scott Scott - 2006-09-06 01:24:38 - In reply to message 1 from Scott
That is so cool! You have no idea how much this has helped me!

Thank You!!!!!!