This topic is locked

How to extract value from field

2/16/2008 9:54:30 AM
PHPRunner General questions
J
jack knowles author

Hi All,
New to PHP Runner.
I need help with the following. I have a table called cars with the following fields: vehicle, color, fuel.
I need a way to pull out the value stored in field: vehicle based on what record the user selects to view.
i.e. when you go to the cars_list.php page the following will be displayed as an example:
vehicle - color - fuel

-----------------------------

ford - red - petrol

vauxhall - green - petrol

mercedes - black - diesel
Should the user select the 2nd line: (vauxhall, green, petrol) then i want a variable temp to contain the value vauxhall.
Hope you can provide a solution.
JK

J
Jane 2/18/2008

Hi,
where do you want to fill this variable?

J
jack knowles author 2/18/2008

Hi,

where do you want to fill this variable?


Jane,
I just want to populate the variable temp and display it back to the webpage on the table cars_list
Thank
JK

J
Jane 2/18/2008

Hi,
if you want to check off record on the list page and show value right away use JavaScirpt code.

To add JavaScript code proceed to the Visual Editor tab and turn on HTML mode.