;
// دیگه نیازی به نوشتن دوباره ی این خط نیست: $query = "SELECT `id` FROM `table` LIMIT $start-1, 50";
مشکل از این خط بود.
نباید کامنت می شد!
کدی رو که هیچ اروری نمیده و کار می کنه (برای من کار کرد) اینه:
<?php
$start =1;//(int)$_GET['start'];
mysql_connect("localhost", "root", "") or die('err');
mysql_select_db("test");
$query = "SELECT `id` FROM `table` LIMIT $start, 50";
$result = mysql_query($query) or die(mysql_error());
echo "<table class='invisible_table'><tr><td>";
echo "<table class='column1'>";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td>" . $row["id"] . "</td></tr>";
}
echo "</table>";
echo "</td>";
$start += 50;
$query = "SELECT `id` FROM `table` LIMIT $start, 50";
$result = mysql_query($query) or die(); // ??? ???? ???? ?????? ??????? ?? ??? ????? ?? ???? ??? ??? ?????? ????? ????? ?????
echo "<td>";
echo "<table class='column2'>";
while ($row = mysql_fetch_array($result))
{
echo "<tr><td>" . $row["id"] . "</td></tr>";
}
echo "</table>";
// editted: the last line was added
echo "</td></tr></table>";
?>