This is a generic:-
Description<Space> Field Name:Value,....Field Name:Value
This is a code:-
[login to view URL]("The value you have inserted is" +
"name:" + [login to view URL]()
",age:" + [login to view URL]()
",course:" + cName?
);
Based on the generic:
1. "The value you have inserted is" = Description
2. name: = Field Name
3. age: = Field Name
4. [login to view URL]() = Value
5. [login to view URL]()? = Value
6. cName? = Value
insertLog is a method that takes in this string and does the insertion into the database. From what I see the string does not match the generic. Is there a way of organizing the code in such a way that it does not look messy as above and matches the generic. Take note that the field and value can increase in due time. Therefore there is a need to have a way of? parsing the field and value to the insertLog method as an argument and then assembling that argument to match the generic. This is just a suggestion. Please propose.