scheols Posted July 9, 2006 Share Posted July 9, 2006 okay i was looking at this detialed tutorial and it said i would need 2 know the totol data of information: i dont understand what this mean http://www.phpnoise.com/tutorials/9/2 Quote Link to comment https://forums.phpfreaks.com/topic/14114-pagination-_/ Share on other sites More sharing options...
Gast Posted July 9, 2006 Share Posted July 9, 2006 The number of records in the datbase:[code]<?php$sql = mysql_query("SELECT * FROM table");$num = mysql_num_rows($sql);?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/14114-pagination-_/#findComment-55271 Share on other sites More sharing options...
scheols Posted July 9, 2006 Author Share Posted July 9, 2006 oh so where you have table add my table and the "mysql_num_rows" counts how many i have am i right? Quote Link to comment https://forums.phpfreaks.com/topic/14114-pagination-_/#findComment-55285 Share on other sites More sharing options...
Gast Posted July 9, 2006 Share Posted July 9, 2006 Yep, just make your query, in this case selecting all records from the database and "mysql_num_rows()" returns the number of results. Also, I would recommend taking a look at phpfreak's tutorial: http://www.phpfreaks.com/tutorials/73/0.php Quote Link to comment https://forums.phpfreaks.com/topic/14114-pagination-_/#findComment-55290 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.