Replace this
<img src="https://stackoverflow.com/questions/30708781/<?php echo $rs["p_image']; ?>" alt="" />
to
<img src="https://stackoverflow.com/questions/30708781/<?php echo $p_id["p_image']; ?>" alt="" />
3
solved illegal string offset with while loop [closed]