I'm new to PHP and coding in general, I already made the same lines of code in HTML and it worked fine but when i move it to PHP it wont load.
<div class="left">
<div class="healy-logo">
<img src="/asset/healy-logo.png" alt="">
</div>
<div class="doctor-logo">
<img src="/asset/doctor authen.png" alt="">
</div>
</div>
This is what is shown when i run the html code and my expectation for my php file
expectation
But when i run the PHP code it shows an error
error
2
Answers
Try this
If you use "/" in starting of a file path, It will take the first directory as the root directory of your system. this takes the relative path of your project directory
i think you just forget to run with Xampp or something like that (dont forget to click run Apache Server), or you just forgot to copy image folder/file on Xampp Folder.
or you just forget to add . if that all still not working you can do inside the HTMl and not HTML inside the
example for inside the HTML :
that’s from me, hope thats help you bro!