Here is my code:
\'); $pro
The correct form is:
$product->addchild('image_url',htmlspecialchars($row['imag_url']));