Re: proper way to adjust WxH
Posted: Thu Jun 23, 2011 7:50 am
echo "<img src='".$dir."/".$file."' width='200' height='200'><br>";That should do it.
echo "<img src='".$dir."/".$file."' width='200' height='200'><br>";That should do it.
The reason you got the syntax error is that you tried to use a quote in the string that you also used to mark the start of the string. PHP cannot tell that the quote in the middle is meant to be part of the string so treats it as the end, and you get the error. you need to escape the quotes in the middle, e.g.uhshosting wrote:and a few others playing around with " and '
echo 'I can\'t remember this.';notice the \ before the ' in can't.