hey, thanks for your reply.
yeah i removed the sprintf, and the names are correct. but later i found out that was not the problem. actually i should not have put if statement before executing the query because it will not fire any data.
but still, thanks for the sprintf, now i know what is the use of it 🙂
appreciate your help. thanks alot