This is the code
The question is:
Is there a way to find out the total number of recdords?
i mean this query is returning 20 records because of the LIMIT ...
let's say there are 23 records in the table ...
is there some mysql_something or mysql_getrowswithoutlimit ?
or i need to run the query twice to find out how much more records are in there?
thank you
--
If I would be such a good coder as I like coding ... I would be the Best
Code:
<?php
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("Could not connect: " . mysql_error());
mysql_select_db("mydb");
$result = mysql_query("SELECT id, name FROM mytable LIMIT 0,19");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
printf("ID: %s Name: %s", $row[0], $row[1]);
}
mysql_free_result($result);
?>
The question is:
Is there a way to find out the total number of recdords?
i mean this query is returning 20 records because of the LIMIT ...
let's say there are 23 records in the table ...
is there some mysql_something or mysql_getrowswithoutlimit ?
or i need to run the query twice to find out how much more records are in there?
thank you
--
If I would be such a good coder as I like coding ... I would be the Best