Hi Guys
I have a testing website that checks tests done on products to see if they have passed or failed. So for example the user may type into the table and it will check if it has passed/failed. For example to pass the value may have to be in the range of 5-20. At the minute i have it checking the inputted value with if statements and < > signs to check if the value is in the range of 5-20.
Now and again the range/spec may change and i would like a way of having the range stored in a text file or excel file and for the program to read the value from there so it could be easily changed if need be.
I can read values from a text file and print them but not sure how i could save it in a php variable and then use that value in my testing check.
For example this is how i check if the value is in a certain range to pass or fail
Could anyone help me on this please?
Thanks
I have a testing website that checks tests done on products to see if they have passed or failed. So for example the user may type into the table and it will check if it has passed/failed. For example to pass the value may have to be in the range of 5-20. At the minute i have it checking the inputted value with if statements and < > signs to check if the value is in the range of 5-20.
Now and again the range/spec may change and i would like a way of having the range stored in a text file or excel file and for the program to read the value from there so it could be easily changed if need be.
I can read values from a text file and print them but not sure how i could save it in a php variable and then use that value in my testing check.
For example this is how i check if the value is in a certain range to pass or fail
Code:
if(($_POST[field1] >0) && ($_POST[field2]<=20) && ($_POST[field3] >=80) && ($_POST[field4] <=100))
Could anyone help me on this please?
Thanks