Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the erro occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
PHPコードでPHPコードの下にエラーappreasを実行している間:
<?php
require "init.php";
$Date = [];
$Subject = [];
$Desc= [];
$query = mysqli_query($con,"SELECT date, Subject, Desc FROM sherif_DCOAn");
while($row = mysqli_fetch_assoc($query)){
$Date[] = $row['date'];
$Subject[] = $row['Subject'];
$Desc[] = $row['Desc'];
echo json_encode($Date).','.json_encode($Subject).','.json_encode($Desc).',';
}
?>
私はしばらくの間の部分を追加したときにエラーが表示されます。
while($row = mysqli_fetch_assoc($query)){Whatever code}
私は別の選択で同じように適用され、それが動作します:
最初のものと間違っているものを$query = mysqli_query($con,"SELECT DISTINCT SiteName FROM CAB");
?
あなたは私を救った:)。これは、私はそこに私は数えることができるよりも多くの時間となってきた@SheriffSaidElahl答え –
でした!最善の答えのダニのおかげで、少し答えを詳述しました。 –
これらは表ではなく列名です。 – jkavalik