How to properly make drop down list menu for my tbl_item in php

前端 未结 1 1744
眼角桃花
眼角桃花 2021-01-27 09:48

Im having trouble with my drop down list menu its keeps getting wamp error. my drop down list menu will be from the itemname of tbl_item(postgresDB)

funcContainer.php pa

相关标签:
1条回答
  • 2021-01-27 10:27

    On initial page load $_POST[$name] (or more specifically $_POST['Item'] may not be set. So you will want to check if it is set before using.

    Change

    if ($row[$value] == $_POST[$name])
    

    to

    if (isset($_POST[$name]) && $row[$value] == $_POST[$name])
    
    0 讨论(0)
提交回复
热议问题