PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 21st, 2002, 01:25 PM
nestorvaldez nestorvaldez is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 40 nestorvaldez User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 21 sec
Reputation Power: 6
Calculated field with php

Hi everybody...
I need somethin..

I have a form with some calculated field and I donīt know how to put the calculated data in this field. I want this fields to be displayonly that means that only the data can be put in it by formula not by the user typing..
Ex. I have a grade register form.. and I have 90 in the first grade and 85 in the second I want to calculate the avg. and put this avg in another field. How I do this...

Nestor Valdez...
Answer me in my email
nestorvaldez@hotmail.com

Reply With Quote
  #2  
Old November 21st, 2002, 06:25 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Ill take it from where you have the to grades
firstly you need to do this

$var = ($grade1 + $grade2) / 2

then insert $var into the database.

Reply With Quote
  #3  
Old November 22nd, 2002, 05:06 AM
nestorvaldez nestorvaldez is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 40 nestorvaldez User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 21 sec
Reputation Power: 6
Calculated field with php

Ill take it from where you have the to grades
firstly you need to do this

$var = ($grade1 + $grade2) / 2

then insert $var into the database.
====================================
I know that but my problem is :
How do i show this avg var in the browser in the field avg, before I save it in the database.
i want to show the avg var in this field when i left the GRADE2 field. it is possible?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Calculated field with php


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT