爲什麼第一個記錄是空的?這不是空的第一個記錄成爲第二記錄,第一個是空的,它似乎無處記錄集中的第一條記錄爲空。爲什麼?
這是代碼
mysql_select_db($database_webiceberg, $webiceberg);
$query_services = "SELECT
services.dynamic_price,
services.database_price
from services
where lang=2 " ;
$services = mysql_query($query_services, $webiceberg) or die(mysql_error());
的這部分代碼是身體
<?php do {
$title = $row_services['dynamic_price'];
$database_price = $row_services['database_price'];
$id = $row_services['id_services'];
?>
<tr id="<?php echo $id;?>">
<td class="matrixItem" >
<a href="WebDesign.php?cattegory=<?php echo $cattegory; ?>" id="nigga"><?php echo $title; ?></a>
</td>
</tr>
<?php } while ($row_services = mysql_fetch_assoc($services));
?>
我刪除在該部分代碼給它更多的語法和怎麼把代碼我刪除是多餘
而不是'DO ... WHILE',爲什麼不嘗試一個簡單的'WHILE'?您當前的WHILE命令位於底部,因此第一個循環可能不會提取任何數據。 – Nonym