Please check this (I'm new to PHP), I just want to add an image to an existing php code for the nav menu.
Previous code is
$html .= "<li>
<a href='".$menu['items'][$itemId]->menu_link."'>".$menu['items'][$itemId]->display_name."</a>
</li>
";
Which is displaying correct with the Menu name, and here i want to put an image so my code is as below
$html .= "<li>
<a href='".$menu['items'][$itemId]->menu_link."'><img src='../assets/img/live_view.png'/>".$menu['items'][$itemId]->display_name."</a>
</li>
";
Its not displaying the image correctly but has no errors, is there any fix ?