I have this code,
$replies = 1094
$totalstart = 1064
I have my results to start at 1064 and go to the end! however it's running 30 down to 1...
what is wrong?
$result = mysql_query ("SELECT COUNT(*) From news");
$row = mysql_fetch_array($result);
$replies = $row[0];
if ($start == "") {
$start = "30";
}
echo $replies;
echo "<br>";
$totalstart = $replies - $start;
echo $totalstart;
echo "<br>";
$result3 = mysql_query ("SELECT * From news order by id desc limit $totalstart,30");
while ($row3 = mysql_fetch_array($result3)) {