could you please help about this error message
I'm trying to control the size of image using this line of code.
when use this tag to control size of images
echo "<img src=\"images/". $row['name'] . "\" alt=\"\" height="150" width="234" /> <br /></td></tr>";
it displaying this error message and line31 is that first line of code above.
Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in C:\wamp\www\upload\images1.php on line 31.
echo "<img src=\"images/". $row['name'] . "\" alt=\"\" height=\"150px\" width=\"234px\" /> <br /></td></tr>";
54 68 65 42 65 61 72 4D 61 79
or use single quotes outside then you don't have to escape the double quotes inside.
echo '<img src="images/'. $row['name'] . '" alt="alt text here" height="150" width="234" /> <br /></td></tr>';
Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.
And just FYI, single quotes are OK for HTML attribute values, so you could do the inverse:
echo "<img src='images/". $row['name'] . "' alt='' height='150' width='234' /> <br /></td></tr>";
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)