i'm making an admin portal where admin can create users,and when they create user they only add their basic details. so when a user logs in to the system he finds a broken image. to fix that i did some digging and found out about onerror
event in img tag. I tried using it,but it is not working.
my code : <img src="images/<?php echo $image;?>" onError="this.onerror=null;this.src='/images/abc.png';"/>
Please help me out here,this is the only task remaining to finish of my 1st project.