How do I insert an image in php -
this question has answer here:
- php parse/syntax errors; , how solve them? 11 answers
this code have when try run it, error saying, "parse error: syntax error, unexpected 'src' (t_string), expecting ',' or ';' in h:\xampp\htdocs\teacher\page1.php on line 33"
the code shows below:
echo "<div id = 'image1'>" <img src='path/to/desert.jpg' alt='photo of me' />"</div>"; echo "<div id = 'title'>". $output['title'] . "</div>"; echo "<div id = 'initials'>" . $output['cipher']."</div>"; echo "<div id = 'lastname'>" .$output['lastname'] . "</div>"; echo "<div id = 'level'>".$output['salerylevel'] . "</div>";
dude forgot semicolon ; on line 33.. cant read error?
Comments
Post a Comment