hosted by liquidweb


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

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
  #1  
Old
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
  #2  
Old
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

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

Sponsored Links
  #4  
Old
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.

Reply

Related posts from TheWhir.com
Title Type Date Posted
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
Online Tech Awards Two $1,000 Scholarships to University of Michigan Students Web Hosting News 2013-01-22 17:42:49
Cloud Appliance Firm Nebula Names Former OpenStack Engineer Product Management VP Web Hosting News 2012-11-14 15:27:14
Rackspace Launches OpenStack-Powered Cloud Block Storage Solution Web Hosting News 2012-10-23 10:16:40


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
Login:
Log in with your username and password
Username:
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.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?