Jump to content

Echo Code Error, can you help?


mallxlolli

Recommended Posts

I am a first time PHP user and I am just trying out a code that has been suggested to me to display a webpage.

I keep getting this error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/vibrante/public_html/hello.php on line 47

 

The line of coding is:

 

<div class='header'>Click</div><br>

 

I am using

 

<?php

 

echo " content here ";

?>

 

I have used the semi-colon at the end, and put apostrophes instead of quotation marks. I have tried quotation marks and slashing, but it is still not working.

The same sort of code for other divs on the page and they work fine.

 

My host supports PHP, but I am currently not using MySql, I am not currently worried about any other errors I may have at the moment.

Can anyone help me with this?

 

 

Link to comment
https://forums.phpfreaks.com/topic/169301-echo-code-error-can-you-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.