hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : PHP to output SQL field

Forum Jump

PHP to output SQL field

Reply Post New Thread In Programming Discussion Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Junior 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 ?

Sponsored Links
Aspiring 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

Junior Guru Wannabe
Join Date: Oct 2002
Posts: 36
can you give me the example of javascript arrays ?

Sponsored Links
Aspiring 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.


Related posts from
Title Type Date Posted
Researchers Redesign SSL Warnings in Chrome to Improve Adherence Rates Web Hosting News 2015-02-04 10:04:34 Listing 2014-11-03 16:49:56
New Open Platform for NFV Project Aims to Standardize How Entire Networks are Virtualized Web Hosting News 2014-10-01 14:05:34
Survey: IT Workers Not Confident in Federal Data Center Reliability Web Hosting News 2014-08-21 12:15:40
Netflix Releases Details on its Cloud-Based Neural Network Research Web Hosting News 2014-02-13 09:21:33

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?