Results 1 to 4 of 4
  1. #1

    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 ?

  2. #2
    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

  3. #3
    can you give me the example of javascript arrays ?

  4. #4
    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.

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •