hello sir How to get the row no through mysql query for each row? (i want to display sno) Please help me sir
+1
A:
I believe you are looking to see if you can get the row number for each row through MySQL query right? here's one:
SELECT @rownum:=@rownum+1 AS ‘rownum’, t.* FROM `table` AS t, (SELECT @rownum:=0) `r`
thephpdeveloper
2009-09-14 07:07:37
ok thank you sir. I Expect this only sir.
somu
2009-09-29 10:25:36
no problem at all somu!
thephpdeveloper
2009-10-01 11:45:53