Fatal error: [] operator not supported for string error on PHP Array in for loop

前端 未结 2 1871
故里飘歌
故里飘歌 2021-01-24 17:47

I have this PHP Code:

for($i=1; $i<=$_POST[\"counter\"]; $i++)
{
    if($_POST[\"checkbox$i\"])
    {
        //select the billing_pdf row
        $sql=\"SELE         


        
2条回答
  •  粉色の甜心
    2021-01-24 18:36

    You have already used $emails_list as a string some where in your page like $emails_list = 7;

    and again using it like

    $emails_list[] = array(1,2,4);

提交回复
热议问题