次のMySQLクエリを実行すると
$result = mysql_query("SELECT * FROM credentials ORDER BY RAND() LIMIT 1");
$result =mysql_fetch_row($result);
$username=$result["username"];
$password=$result["password"];
$gateway=$result["gateway"];
次のエラーが表示されます。
注意: 未定義のインデックス: C:\xampp\htdocs\switch\switch\index.php の 78 行目のユーザー名
Notice: Undefined index: password in C:\xampp\htdocs\switch\switch\index.php 行 79
注意: 未定義のインデックス: 80 行目の C:\xampp\htdocs\switch\switch\index.php のゲートウェイ
誰か助けてくれませんか?