Jump to content

Archived

This topic is now archived and is closed to further replies.

scheols

Pagination -_-

Recommended Posts

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

Share this post


Link to post
Share on other sites
The number of records in the datbase:

[code]<?php
$sql = mysql_query("SELECT * FROM table");
$num = mysql_num_rows($sql);
?>[/code]

Share this post


Link to post
Share on other sites
oh so where you have table add my table and the "mysql_num_rows" counts how many i have am i right?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.