私のphpは印刷したい情報を印刷していませんが、mysqlデータベースをセットアップしました。
コードは次のようになります (既に mysql に接続し、データベースを正常に作成しました。挿入したものを出力するために必要なだけです)。
// will insert into the table
mysqli_query ($con, "INSERT INTO alarms(Title, Description, DT)
VALUES(getSucked, Agha will smd, 2013-08-05 00:15:12)");
//will print out what we just insert into the table, ie agha smd's
$result = mysqli_query($con,"SELECT * FROM alarms");
while ($row = mysqli_fetch_array($result))
{
echo $row['alarmID'] . " <br> " . $row['Title'] . " <br> " . $row['Description'] . " <br> " . $row['DT'];
}
//closing connection
mysqli_close($con);
echo "<br><br>connection has been closed";
私が取得し続ける警告/エラーは次のとおりです。
「警告: mysqli_fetch_array() は、パラメーター 1 が mysqli_result であると想定しています。これは、83 行目の B:\DropBox\Dropbox\EbadlyAgha\Ebad\reminders.php で指定されたブール値です」
83 行目から while ループが始まります。