PHP syntax is abnormal, the gods come in and look at my brother.

Source: Internet
Author: User
Tags parse error php syntax error
PHP syntax error, the great gods come in and see what I am wrong!
My Code:
PHP Code
  
       

Put on the server prompt:
Parse error:syntax error, unexpected t_string, expecting ', ' or '; ' C:\xampp\htdocs\index.php on line 16
The first line of code above is line 16th.

------Solution--------------------
Echo

The current time is: $currtimestr

"



Php?>
1. Echo Best and "" separate
echo "Content";
2. The contents are enclosed in quotation marks, and the HTML code you want to output has double quotes, and the PHP interpreter relies on quotation marks to determine where the string ends, so ';

?>

------Solution--------------------
discuss

I put all the "" re-input also error.
and 16 more lines.
html
Of course, I didn't look at your other code, just this part ...

Explore

Reference:

I put all the "" re-input also error.
and 16 more lines. 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.