Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • naboth
    New Member
    • Mar 2009
    • 1

    Script

    Hi guyz. Am trying to create a program that accepts user to in put symptoms. And it compares them angainst set symptoms to determin his/her disesae. Is this possible with php. How could i do it.
  • hoopy
    New Member
    • Feb 2009
    • 88

    #2
    You can do this with PHP. In simple terms you would need to build a form which takes all the parameters from the user then upon submit it compares those values to data within a database and determines a result.

    As to the code to actually do it you just need to follow some basic PHP tutorials about querying and retrieving from a database.

    Comment

    • TheServant
      Recognized Expert Top Contributor
      • Feb 2008
      • 1168

      #3
      Focus on "if loops" as there will be a lot of processing with the logic:
      Code:
      if( $symptom_temp == "fever" ) {
      	if( $tongue_color == "blue" ) { /*do this*/ }
      	elseif( $tongue_color == "yellow" ) { /*do this*/ }
      }
      It could be very big and somewhat complicated/

      Comment

      Working...