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.
Script
Collapse
X
-
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. -
Focus on "if loops" as there will be a lot of processing with the logic:
It could be very big and somewhat complicated/Code:if( $symptom_temp == "fever" ) { if( $tongue_color == "blue" ) { /*do this*/ } elseif( $tongue_color == "yellow" ) { /*do this*/ } }Comment
Comment