3
Reply

Fetch only one record in MySql

Vineet Kumar Saini

Vineet Kumar Saini

May 17 2012 8:15 AM
1.5k
Hi Friends

I have a table in mysql like this

id   fname   lname
=============
1     amit      gupta
2     sumit     rai
3      raj        kohli
4     kunal    sharma
5      sonu    saini


and I have a textbox and a ok button in html form. I want, when we enter 3(id) in the textbox then click ok button then display only data of id 3 i.e. raj kohli. How to do this ? Please help me anyone with an example ?



Thanks

Answers (3)