I need to get the values from database in ascending order.I will explain you in detail.I have two columns in my mysql table "ivr". The first column is messages and the second column is order_no.like the following
Thank you 4
How are you 3
Here The messages should be printed in order by order_no like
How are you
This is perfect. But if I need to give two order numbers for one message like ,For the message bob I need to give the order number 2 and also 5, How should i store the order number in database?Can i store it like 2,5?Is it possible?
preethi Ayyappan wrote:Then how should i do this. If i insert two times bob and its order number,i can able to print the bob in the locations according to the order number.
that was acceptance or a question? I assumed you need to print bob more than once in different places. If it is not, then explain it again.
preethi Ayyappan wrote:How to put in hashmap?I have no idea about that
I fyou don't want to make another entry in table, then you need to hardcode the order for your corresponding message, that second bob will always come in 5th position. here 5 will be the key and bob will be the value. Something like that.