0
我有一個表與行,但由於某種原因,它只填充14行。我有大約800行的數據庫。有任何想法嗎?PHP fetch_row限制結果
代碼:
$result = mysqli_query($con,"SELECT * FROM translation ORDER BY id");
while($row = mysqli_fetch_row($result) and $property = mysqli_fetch_field($result))
{
echo "<tr>";
foreach($row as $column => $value) {
// $column is column name 'englsih', 'spanish' etc.
$name = $property->name;
echo "<td align='left' class='cell".$column."'>". $value . "</td>";
}
echo "<td><span class='edit_b'></span><span class='remove_b'></span></td></tr>";
}
echo "</thead></table>";
我想通了。我在別的地方使用它,並注意到我不在這個循環中使用它... – Grasper 2014-11-03 21:03:05