madspof Posted May 14, 2009 Share Posted May 14, 2009 Is there a way of selecting data from a field from where you no a specific row number for example SELECT name FROM users WHERE rownum = "1" Link to comment https://forums.phpfreaks.com/topic/158115-solved-is-there-a-way-of-selecting-data-from-a-particular-row-number/ Share on other sites More sharing options...
madspof Posted May 14, 2009 Author Share Posted May 14, 2009 BUmp Link to comment https://forums.phpfreaks.com/topic/158115-solved-is-there-a-way-of-selecting-data-from-a-particular-row-number/#findComment-834098 Share on other sites More sharing options...
Philip Posted May 14, 2009 Share Posted May 14, 2009 SELECT name FROM users LIMIT 5,1 would grab row 6 Link to comment https://forums.phpfreaks.com/topic/158115-solved-is-there-a-way-of-selecting-data-from-a-particular-row-number/#findComment-834207 Share on other sites More sharing options...
madspof Posted May 14, 2009 Author Share Posted May 14, 2009 But if i know the row number for example in the variaible $num how would i implement that into the ode above ? Link to comment https://forums.phpfreaks.com/topic/158115-solved-is-there-a-way-of-selecting-data-from-a-particular-row-number/#findComment-834272 Share on other sites More sharing options...
Philip Posted May 14, 2009 Share Posted May 14, 2009 $query = mysql_query("SELECT name FROM users LIMIT ".($num-1).", 1"); Link to comment https://forums.phpfreaks.com/topic/158115-solved-is-there-a-way-of-selecting-data-from-a-particular-row-number/#findComment-834353 Share on other sites More sharing options...
madspof Posted May 14, 2009 Author Share Posted May 14, 2009 haha sorry about that i did it in the end before you posted lol i was being such a dumb ass lol anyway thanks for the help :-) Link to comment https://forums.phpfreaks.com/topic/158115-solved-is-there-a-way-of-selecting-data-from-a-particular-row-number/#findComment-834371 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.