wxpsadd Posted October 24, 2008 Share Posted October 24, 2008 hello guys! i'm just new to php, and i wonder how to display specific number of records from mysql, i have a search engine built on my page and i want those search results will display at least 10 records. please help me........ thanks in advance!!!! Quote Link to comment Share on other sites More sharing options...
n3ightjay Posted October 24, 2008 Share Posted October 24, 2008 $q = mysql_query('select * from `whatEVER` limit 0, 10'); while($results = mysql_fetch_row($q)){ // display results } assuming your using mysql Quote Link to comment Share on other sites More sharing options...
wxpsadd Posted October 24, 2008 Author Share Posted October 24, 2008 wow! thanks a lot! nicely done! problem solved ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.