I am trying to set size of an image in PHP but it’s not working..
echo "<img src=".$media."width=200 height=200";
$media is the src link. Without the width and height attributes, it works perfectly well. I think that 200 must be enclosed in double quotations but I am unable to do that. Any ideas on how to solve this problem?
widthis currently concatenated with your file name. Use:The
/>closing tag is necessary to correctly render your image element.The quotes around tag names are recommended. Omitting these quotes will only cause issues when: