Hi All,
I have a PHP Code That is Search Input Value from Database and Print it. but i want to Print Serial Number (1,2,3......) before my Every Query. For Ex:
1. Name F Name Add
2. Name F Name Add
3. Name F Name Add
4. Name F Name Add
5. Name F Name Add

Please Suggest me The Code for Done This. Thank You.

Show us your current code, we don't know you database schema or what to change if you don't

try something like this

$i = 1;
while(.....){
echo $i; echo $yourdata;
$i++;
}

try something like this

$i = 1;
while(.....){
echo $i; echo $yourdata;
$i++;
}

Thanx Dude for Help....
I am Solve my Problem with your Suggestion..
and mark this thread to Solved..

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.