i run an sql on my interbase table and my $result looks like this:
--------------------------------------------------------------------------
| CLIENT_ID | NAME | APP_ID | VERSION_NO |
--------------------------------------------------------------------------
| 1 | ADA | 1 | 4.1.0.1 |
| 1 | BBT | 2 | 4.1.0.2 |
| 1 | SHU | 3 | 4.1.0.3 |
| 1 | PIN | 4 | 4.1.0.4 |
--------------------------------------------------------------------------
my problem is trying to display this information within 5 textfields of a HTML form. i want:
textfield 1 to display CLIENT_NAME from row 1
textfield 2 to display VERSION NO from row 1 again
textfield 3 to display VERSION NO from row 2
textfield 4 to display VERSION NO from row 3
textfield 5 to display VERSION NO from row 4
- i tried putting the following code into the value tag of textfield 1:
<php
while ($row= ibase_fetch_row ($result)){
echo ibase_result($result, 0, "CLIENT_NAME")
?>
i thought this code would allow me to display the client name value of a specific row. i could then repeat a variation of this code in each FORM value tag. but it doesnt work and is not listed as an interbase function like it is with MySQL.
I think this is a basic problem but its got me stumped. Can someone please help me. Ive been trying to solve this for ages and am very frustrated.