Unterminated entity reference in PHP

后端 未结 7 1320
遥遥无期
遥遥无期 2021-02-02 06:06

Here is my code:

\');
$pro         


        
7条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 06:39

    Try by changing -

    $product->addchild('image_url','$row[imag_url]');
    

    To

    $product->addchild('image_url',"$row[\"imag_url\"]");
    

    OR

    $product->addchild('image_url',$row['imag_url']);
    

    EDIT wrap quotes too round image_url, courtesy Barrmar

提交回复
热议问题