Results 1 to 4 of 4
Thread: PHP to output SQL field
-
11-25-2002, 01:42 PM #1Junior Guru Wannabe
- Join Date
- Oct 2002
- Posts
- 36
PHP to output SQL field
I have "stock" table that have 3 fields :
1 == sid == for stock-id
2 == desc == for stock description
3 == balance == for stock balance
I also have "status" table that have 4 fields:
1 == id == for status id
2 == sid == for stock id that want to monitor
3 == desc == for stock description
4 == stat == for status of the stock (good/bad status)
I want to give my php script the ability to show the description stock on "status" script when i choose the stock id (using select function) automatically before i click submit.
Can php script do this ?
-
11-25-2002, 02:25 PM #2Aspiring Evangelist
- Join Date
- Jul 2002
- Location
- Israel
- Posts
- 351
In a word, No.
In a sentence, no, because PHP is parsed BEFORE the client sees it; You could offload the relevant fields into JavaScript arrays and display them using the stock JS events.C#/C++/TCL/Python/PHP developer.
mark at mark org il
-
11-25-2002, 11:01 PM #3Junior Guru Wannabe
- Join Date
- Oct 2002
- Posts
- 36
can you give me the example of javascript arrays ?
-
11-26-2002, 01:47 AM #4Aspiring Evangelist
- Join Date
- Aug 2002
- Location
- Long Island
- Posts
- 427
oh click...
John Trovato
In Office Networks, LLC
Programmer, Cisco Network Engineer, Roofer, Biochemist, and Conductor.