Monday, July 13, 2009

random in asp.net/c#

using sql querry : string sqlqueryselect = "select top 3 * from Products order by newid() "; with php using random - rand() string sqlqueryselect = "select * from Products ORDER BY RAND() LIMIT 3 ";

No comments:

Post a Comment