Vineet Kumar Saini

Vineet Kumar Saini

  • NA
  • 10.4k
  • 7.3m

Fetch only one record in MySql

May 17 2012 8:15 AM
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)