如何解决未定义的索引错误,使我无法使用数据库值填充下拉列表?

时间:2019-04-27 02:09:15

标签: php mysql

我正在尝试使用数据库值填充HTML下拉列表。我不明白为什么这段代码将我的下拉列表留空。

我有两个未定义的索引错误:

WARNING:tensorflow:From /Users/Hovanes/anaconda3/lib/python3.7/site-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
Train on 750 samples, validate on 250 samples
Epoch 1/10

错误所指向的行

Undefined index: Select_Product in /storage/ssd1/210/6999210/public_html/csis2430/CE14/AdventureCart.php on line 6
Undefined index: action in /storage/ssd1/210/6999210/public_html/csis2430/CE14/AdventureCart.php on line 7

下拉php

$action = $_POST['action']; //action from urldecode

我希望这能从数据库表中提取信息,并在下拉列表中填写项目名称,但该字段仍为空。

0 个答案:

没有答案