manish250 0 Junior Poster in Training

hello all,

It is my first post on this site.
i have a configuration file which is divided in the blocks like
MyServer=localhost
MyName=ussd
MyUser=root
MyPasswd=rnd
MyPortNum=3306
Req_thread=20
Sleep_thread=2000
url_timeout=1000
HIT_URL_IP=10.43.14.70
HIT_URL_port=80
[*515#]
URL_SUB=GET /subscription/subservice.aspx?Mobileno=?&Channel=USSD&planid=13404&clientid=511&requestType=1&SubscriptionMode=USSD&isbill=1&subid=1340&shortcodeid=49 HTTP/1.0\r\n\r\n
URL_UNSUB=
PRODUCT=
METHOD=
[END]

[*522#]
URL_SUB=
URL_UNSUB=
PRODUCT=
METHOD=
[END]

[*560#]
URL_SUB=
URL_UNSUB=
PRODUCT=
METHOD=
[END]
there are 3 different block like this.what i want to do is when i got a value from db for eg 575 then only default and block related to 575 is used not other..

Please help.it's critical

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.